Merge pull request #9129 from PhilipGough/bz-1984365

mixin: Filter instance by selected job for Prometheus overview dashboard
This commit is contained in:
Björn Rabenstein 2021-08-13 14:03:16 +02:00 committed by GitHub
commit 9c43ac451c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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(