Merge pull request #9129 from PhilipGough/bz-1984365
mixin: Filter instance by selected job for Prometheus overview dashboard
This commit is contained in:
commit
9c43ac451c
|
@ -13,8 +13,8 @@ local template = grafana.template;
|
||||||
g.dashboard(
|
g.dashboard(
|
||||||
'%(prefix)sOverview' % $._config.grafanaPrometheus
|
'%(prefix)sOverview' % $._config.grafanaPrometheus
|
||||||
)
|
)
|
||||||
.addMultiTemplate('job', 'prometheus_build_info', 'job')
|
.addMultiTemplate('job', 'prometheus_build_info{%(prometheusSelector)s}' % $._config, 'job')
|
||||||
.addMultiTemplate('instance', 'prometheus_build_info', 'instance')
|
.addMultiTemplate('instance', 'prometheus_build_info{job=~"$job"}', 'instance')
|
||||||
.addRow(
|
.addRow(
|
||||||
g.row('Prometheus Stats')
|
g.row('Prometheus Stats')
|
||||||
.addPanel(
|
.addPanel(
|
||||||
|
|
Loading…
Reference in New Issue