mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-19 15:06:06 +01:00
Remove k8s from dashboard title, make gauges use datasource variable.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
parent
642f67ffa1
commit
bd648827fe
@ -84,8 +84,8 @@ local g = import 'grafana-builder/grafana.libsonnet';
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
'k8s-node-rsrc-use.json':
|
'node-rsrc-use.json':
|
||||||
g.dashboard('K8s / USE Method / Node')
|
g.dashboard('USE Method / Node')
|
||||||
.addTemplate('instance', 'up{%(nodeExporterSelector)s}' % $._config, 'instance')
|
.addTemplate('instance', 'up{%(nodeExporterSelector)s}' % $._config, 'instance')
|
||||||
.addRow(
|
.addRow(
|
||||||
g.row('CPU')
|
g.row('CPU')
|
||||||
|
@ -6,7 +6,7 @@ local prometheus = grafana.prometheus;
|
|||||||
new(title, query)::
|
new(title, query)::
|
||||||
singlestat.new(
|
singlestat.new(
|
||||||
title,
|
title,
|
||||||
datasource='prometheus',
|
datasource='$datasource',
|
||||||
span=3,
|
span=3,
|
||||||
format='percentunit',
|
format='percentunit',
|
||||||
valueName='current',
|
valueName='current',
|
||||||
|
Loading…
Reference in New Issue
Block a user