Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
git branch -u origin/main main
```
* [ENHANCEMENT] Add `EtcdAllocatingTooMuchMemory` alert for monitoring etcd memory usage. #261
* [ENHANCEMENT] Sort legend descending in the CPU/memory panels. #271

## 1.7.0 / 2021-02-24

Expand Down
7 changes: 6 additions & 1 deletion cortex-mixin/dashboards/dashboard-utils.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
fill: 0,
},
],
tooltip: { sort: 2 }, // Sort descending.
},

containerMemoryWorkingSetPanel(title, containerName)::
Expand All @@ -158,6 +159,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
},
],
yaxes: $.yaxes('bytes'),
tooltip: { sort: 2 }, // Sort descending.
},

goHeapInUsePanel(title, jobName)::
Expand All @@ -166,7 +168,10 @@ local utils = import 'mixin-utils/utils.libsonnet';
'sum by(%s) (go_memstats_heap_inuse_bytes{%s})' % [$._config.per_instance_label, $.jobMatcher(jobName)],
'{{%s}}' % $._config.per_instance_label
) +
{ yaxes: $.yaxes('bytes') },
{
yaxes: $.yaxes('bytes'),
tooltip: { sort: 2 }, // Sort descending.
},

// Switches a panel from lines (default) to bars.
bars:: {
Expand Down
5 changes: 4 additions & 1 deletion cortex-mixin/dashboards/writes-resources.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ local utils = import 'mixin-utils/utils.libsonnet';
$.queryPanel(
'sum by(%s) (cortex_ingester_memory_series{%s})' % [$._config.per_instance_label, $.jobMatcher($._config.job_names.ingester)],
'{{%s}}' % $._config.per_instance_label
),
) +
{
tooltip: { sort: 2 }, // Sort descending.
},
)
.addPanel(
$.containerCPUUsagePanel('CPU', 'ingester'),
Expand Down