We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 567320d commit bfbe413Copy full SHA for bfbe413
cortex-mixin/config.libsonnet
@@ -68,5 +68,8 @@
68
69
// The routes to exclude from alerts.
70
alert_excluded_routes: [],
71
+
72
+ // Name of the datasource for which the dashboards should attach to
73
+ dashboard_datasource: 'default',
74
},
75
}
cortex-mixin/dashboards/dashboard-utils.libsonnet
@@ -8,7 +8,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
8
// - default tags,
9
// - some links that propagate the selectred cluster.
10
dashboard(title)::
11
- super.dashboard(title) + {
+ super.dashboard(title=title, datasource=$._config.dashboard_datasource) + {
12
addRowIf(condition, row)::
13
if condition
14
then self.addRow(row)
0 commit comments