mixin: Filter instance by job for Prometheus overview dashboard

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>
This commit is contained in:
Philip Gough 2021-07-28 12:53:59 +01:00
parent ed24e51e7c
commit 751ca03fad
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ local template = grafana.template;
g.dashboard(
'%(prefix)sOverview' % $._config.grafanaPrometheus
)
.addMultiTemplate('job', 'prometheus_build_info', 'job')
.addMultiTemplate('instance', 'prometheus_build_info', 'instance')
.addMultiTemplate('job', 'prometheus_build_info{%(prometheusSelector)s}' % $._config, 'job')
.addMultiTemplate('instance', 'prometheus_build_info{job=~"$job"}', 'instance')
.addRow(
g.row('Prometheus Stats')
.addPanel(