mixin: Filter instance by job for Prometheus overview dashboard
@@ -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(
