Skip to content

Commit abe5031

Browse files
authored
Merge pull request #966 from danushadhitya/master
fix: multi-cluster.libsonnet to support grafana dashboard join "byField" Selector
2 parents 3cb7958 + 47448f9 commit abe5031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dashboards/resources/multi-cluster.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ local var = g.dashboard.variable;
126126
+ g.panel.table.queryOptions.withTransformations([
127127
g.panel.table.queryOptions.transformation.withId('joinByField')
128128
+ g.panel.table.queryOptions.transformation.withOptions({
129-
byField: 'cluster',
129+
byField: std.format('%s', $._config.clusterLabel),
130130
mode: 'outer',
131131
}),
132132

@@ -225,7 +225,7 @@ local var = g.dashboard.variable;
225225
+ g.panel.table.queryOptions.withTransformations([
226226
g.panel.table.queryOptions.transformation.withId('joinByField')
227227
+ g.panel.table.queryOptions.transformation.withOptions({
228-
byField: 'cluster',
228+
byField: std.format('%s', $._config.clusterLabel),
229229
mode: 'outer',
230230
}),
231231

0 commit comments

Comments
 (0)