Skip to content

Commit

Permalink
fix loki-operational.libsonnet
Browse files Browse the repository at this point in the history
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
  • Loading branch information
QuentinBisson committed Apr 29, 2024
1 parent 2d62fca commit 6079219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions production/loki-mixin/dashboards/loki-operational.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6079219

Please sign in to comment.