Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 66e3a52

Browse files
authored
Only show namespaces from selected cluster. "All" works thanks to using regex matcher. (#311)
* Only show namespaces from selected cluster. "All" works thanks to using regex matcher. * CHANGELOG.md
1 parent 79734a7 commit 66e3a52

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## master / unreleased
44

5+
* [CHANGE] `namespace` template variable in dashboards now only selects namespaces for selected clusters. #311
6+
57
## 1.9.0 / 2021-05-18
68

79
* [CHANGE] Replace use of removed Cortex CLI flag `-querier.compress-http-responses` for query frontend with `-api.response-compression-enabled`. #299

cortex-mixin/dashboards/dashboard-utils.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ local utils = import 'mixin-utils/utils.libsonnet';
3636
then d.addMultiTemplate('job', 'cortex_build_info', 'job')
3737
else d
3838
.addMultiTemplate('cluster', 'cortex_build_info', 'cluster')
39-
.addMultiTemplate('namespace', 'cortex_build_info', 'namespace')
39+
.addMultiTemplate('namespace', 'cortex_build_info{cluster=~"$cluster"}', 'namespace')
4040
else
4141
if $._config.singleBinary
4242
then d.addTemplate('job', 'cortex_build_info', 'job')
4343
else d
4444
.addTemplate('cluster', 'cortex_build_info', 'cluster')
45-
.addTemplate('namespace', 'cortex_build_info', 'namespace'),
45+
.addTemplate('namespace', 'cortex_build_info{cluster=~"$cluster"}', 'namespace'),
4646

4747
},
4848

0 commit comments

Comments
 (0)