Merge pull request #9129 from PhilipGough/bz-1984365

mixin: Filter instance by selected job for Prometheus overview dashboard
pull/9213/head
Björn Rabenstein 3 years ago committed by GitHub
commit 9c43ac451c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save