Add customAllValue in config

Signed-off-by: Vitaly Zhuravlev <v-zhuravlev@users.noreply.github.com>
pull/2861/head
Vitaly Zhuravlev 4 weeks ago
parent 028e679d28
commit d071ca6082

@ -107,6 +107,9 @@
//used in USE dashboards only. For others, add cluster label to groupLabels var.
clusterLabel: 'cluster',
//custom allValue to use for dashboard variables
customAllValue: '.+',
// loki logs related related
enableLokiLogs: false,
extraLogLabels: ['transport', 'unit', 'level'],

@ -15,7 +15,7 @@ local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet';
groupLabels=this.config.groupLabels,
instanceLabels=this.config.instanceLabels,
varMetric='node_uname_info',
customAllValue='.+',
customAllValue=this.config.customAllValue,
enableLokiLogs=this.config.enableLokiLogs,
),
// used in USE cluster dashboard
@ -26,7 +26,7 @@ local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet';
groupLabels=std.uniq(this.config.groupLabels + [this.config.clusterLabel]),
instanceLabels=this.config.instanceLabels,
varMetric='instance:node_cpu_utilisation:rate5m',
customAllValue='.+',
customAllValue=this.config.customAllValue,
enableLokiLogs=this.config.enableLokiLogs,
),
useCluster:
@ -35,7 +35,7 @@ local xtd = import 'github.com/jsonnet-libs/xtd/main.libsonnet';
groupLabels=std.uniq(this.config.groupLabels + [this.config.clusterLabel]),
instanceLabels=[],
varMetric='instance:node_cpu_utilisation:rate5m',
customAllValue='.+',
customAllValue=this.config.customAllValue,
enableLokiLogs=this.config.enableLokiLogs,
),
},

Loading…
Cancel
Save