Remove k8s from dashboard title, make gauges use datasource variable.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie 2018-05-11 14:40:20 +01:00 committed by Matthias Loibl
parent 642f67ffa1
commit bd648827fe
No known key found for this signature in database
GPG Key ID: B1C7DF661ABB2C1A
2 changed files with 3 additions and 3 deletions

View File

@ -84,8 +84,8 @@ local g = import 'grafana-builder/grafana.libsonnet';
),
),
'k8s-node-rsrc-use.json':
g.dashboard('K8s / USE Method / Node')
'node-rsrc-use.json':
g.dashboard('USE Method / Node')
.addTemplate('instance', 'up{%(nodeExporterSelector)s}' % $._config, 'instance')
.addRow(
g.row('CPU')

View File

@ -6,7 +6,7 @@ local prometheus = grafana.prometheus;
new(title, query)::
singlestat.new(
title,
datasource='prometheus',
datasource='$datasource',
span=3,
format='percentunit',
valueName='current',