From 751ca03faddc9c64089c41d0da370a3a0b477742 Mon Sep 17 00:00:00 2001 From: Philip Gough Date: Wed, 28 Jul 2021 12:53:59 +0100 Subject: [PATCH] mixin: Filter instance by job for Prometheus overview dashboard Signed-off-by: Philip Gough --- documentation/prometheus-mixin/dashboards.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/prometheus-mixin/dashboards.libsonnet b/documentation/prometheus-mixin/dashboards.libsonnet index a26104230..0581007b4 100644 --- a/documentation/prometheus-mixin/dashboards.libsonnet +++ b/documentation/prometheus-mixin/dashboards.libsonnet @@ -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(