Skip to content

Commit ce2bafa

Browse files
committed
fix: cluster variable in resources/cluster
1 parent ab52e60 commit ce2bafa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
local g = import 'github.com/grafana/grafonnet/gen/grafonnet-latest/main.libsonnet';
2+
local var = g.dashboard.variable;
13
local common = import './common.libsonnet';
24

35
{
46
cluster(config)::
57
local datasource = common.datasource(config);
8+
local clusterVar =
9+
common.cluster(config, datasource, 'up{%(kubeStateMetricsSelector)s}')
10+
+ var.query.generalOptions.showOnDashboard.withLabelAndValue();
611
{
712
datasource: datasource,
8-
cluster: common.cluster(config, datasource, 'up{%(cadvisorSelector)s}'),
13+
cluster: clusterVar,
914
},
1015
}

0 commit comments

Comments
 (0)