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

Commit b9dadec

Browse files
authored
Merge branch 'main' into fix-refetch-alert
2 parents 9f13af9 + b080459 commit b9dadec

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
git branch -u origin/main main
1010
```
1111
* [ENHANCEMENT] Add `EtcdAllocatingTooMuchMemory` alert for monitoring etcd memory usage. #261
12+
* [ENHANCEMENT] Sort legend descending in the CPU/memory panels. #271
1213
* [BUGFIX] Fixed `CortexQuerierHighRefetchRate` alert. #268
1314

1415
## 1.7.0 / 2021-02-24

cortex-mixin/dashboards/dashboard-utils.libsonnet

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
139139
fill: 0,
140140
},
141141
],
142+
tooltip: { sort: 2 }, // Sort descending.
142143
},
143144

144145
containerMemoryWorkingSetPanel(title, containerName)::
@@ -158,6 +159,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
158159
},
159160
],
160161
yaxes: $.yaxes('bytes'),
162+
tooltip: { sort: 2 }, // Sort descending.
161163
},
162164

163165
goHeapInUsePanel(title, jobName)::
@@ -166,7 +168,10 @@ local utils = import 'mixin-utils/utils.libsonnet';
166168
'sum by(%s) (go_memstats_heap_inuse_bytes{%s})' % [$._config.per_instance_label, $.jobMatcher(jobName)],
167169
'{{%s}}' % $._config.per_instance_label
168170
) +
169-
{ yaxes: $.yaxes('bytes') },
171+
{
172+
yaxes: $.yaxes('bytes'),
173+
tooltip: { sort: 2 }, // Sort descending.
174+
},
170175

171176
// Switches a panel from lines (default) to bars.
172177
bars:: {

cortex-mixin/dashboards/writes-resources.libsonnet

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ local utils = import 'mixin-utils/utils.libsonnet';
3535
$.queryPanel(
3636
'sum by(%s) (cortex_ingester_memory_series{%s})' % [$._config.per_instance_label, $.jobMatcher($._config.job_names.ingester)],
3737
'{{%s}}' % $._config.per_instance_label
38-
),
38+
) +
39+
{
40+
tooltip: { sort: 2 }, // Sort descending.
41+
},
3942
)
4043
.addPanel(
4144
$.containerCPUUsagePanel('CPU', 'ingester'),

0 commit comments

Comments
 (0)