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

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(