From bc89e9e49403a476ca44b9342265b0bd3b79da94 Mon Sep 17 00:00:00 2001 From: Fatih Sarhan Date: Fri, 12 Nov 2021 14:33:22 +0300 Subject: [PATCH] mixin: Reorder template variables on Remote Write dashboard Signed-off-by: f9n --- documentation/prometheus-mixin/dashboards.libsonnet | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/prometheus-mixin/dashboards.libsonnet b/documentation/prometheus-mixin/dashboards.libsonnet index 0581007b41..b95f13e0a0 100644 --- a/documentation/prometheus-mixin/dashboards.libsonnet +++ b/documentation/prometheus-mixin/dashboards.libsonnet @@ -312,9 +312,9 @@ local template = grafana.template; ) .addTemplate( template.new( - 'instance', + 'cluster', '$datasource', - 'label_values(prometheus_build_info, instance)' % $._config, + 'label_values(kube_pod_container_info{image=~".*prometheus.*"}, cluster)' % $._config, refresh='time', current={ selected: true, @@ -326,9 +326,9 @@ local template = grafana.template; ) .addTemplate( template.new( - 'cluster', + 'instance', '$datasource', - 'label_values(kube_pod_container_info{image=~".*prometheus.*"}, cluster)' % $._config, + 'label_values(prometheus_build_info{cluster=~"$cluster"}, instance)' % $._config, refresh='time', current={ selected: true,