From 6079219066fe4c664b8b780f22495121e0786e29 Mon Sep 17 00:00:00 2001 From: Quentin Bisson Date: Thu, 25 Apr 2024 15:04:39 +0200 Subject: [PATCH] fix loki-operational.libsonnet This PR fixes the loki-operational.libsonnet mixin in case the value of per_cluster_label starts with cluster_. For historical reasons, we named the cluster label cluster_id so generation actually replaces all cluster_id with cluster_id_id in this dashboard because the replace is incorrect --- production/loki-mixin/dashboards/loki-operational.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/production/loki-mixin/dashboards/loki-operational.libsonnet b/production/loki-mixin/dashboards/loki-operational.libsonnet index 27152ff61ad5a..c6944487ce8e7 100644 --- a/production/loki-mixin/dashboards/loki-operational.libsonnet +++ b/production/loki-mixin/dashboards/loki-operational.libsonnet @@ -88,8 +88,8 @@ local utils = import 'mixin-utils/utils.libsonnet'; 'cluster="$cluster"', $._config.per_cluster_label + '="$cluster"' ), - 'cluster_', - $._config.per_cluster_label + '_' + 'cluster_job', + $._config.per_cluster_label + '_job' ) else std.strReplace(