Skip to content

Commit e037725

Browse files
authored
Merge branch 'main' into aja_ruler_selector
2 parents 51bf5cf + 5a6b0e8 commit e037725

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
* [ENHANCEMENT] Add recording rules to improve responsiveness of Alertmanager dashboard. #387
6868
* [ENHANCEMENT] Add `CortexRolloutStuck` alert. #405
6969
* [ENHANCEMENT] Added `CortexKVStoreFailure` alert. #406
70-
* [ENHANCEMENT] Use ruler jobname for ruler dashboard panels #409
70+
* [ENHANCEMENT] Use configured `ruler` jobname for ruler dashboard panels. #409
71+
* [ENHANCEMENT] Add ability to override `datasource` for generated dashboards. #407
7172
* [BUGFIX] Fixed `CortexIngesterHasNotShippedBlocks` alert false positive in case an ingester instance had ingested samples in the past, then no traffic was received for a long period and then it started receiving samples again. #308
7273
* [BUGFIX] Alertmanager: fixed `--alertmanager.cluster.peers` CLI flag passed to alertmanager when HA is enabled. #329
7374
* [BUGFIX] Fixed `CortexInconsistentRuntimeConfig` metric. #335

cortex-mixin/config.libsonnet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,8 @@
6868

6969
// The routes to exclude from alerts.
7070
alert_excluded_routes: [],
71+
72+
// Name of the datasource for which the dashboards should attach to
73+
dashboard_datasource: 'default',
7174
},
7275
}

cortex-mixin/dashboards/dashboard-utils.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
88
// - default tags,
99
// - some links that propagate the selectred cluster.
1010
dashboard(title)::
11-
super.dashboard(title) + {
11+
super.dashboard(title=title, datasource=$._config.dashboard_datasource) + {
1212
addRowIf(condition, row)::
1313
if condition
1414
then self.addRow(row)

0 commit comments

Comments
 (0)