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

Commit f5681d2

Browse files
revert: query formatting not related to PR goals
1 parent ecd2c34 commit f5681d2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* [ENHANCEMENT] cortex-mixin: Make `cluster_namespace_deployment:kube_pod_container_resource_requests_{cpu_cores,memory_bytes}:sum` backwards compatible with `kube-state-metrics` v2.0.0. #317
1515
* [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
1616
* [BUGFIX] Alertmanager: fixed `--alertmanager.cluster.peers` CLI flag passed to alertmanager when HA is enabled. #329
17-
* [CHANGE] Dashboards: defined container functions for common resources panels: containerDiskWritesPanel, containerDiskReadsPanel, containerDiskSpaceUtilization
17+
* [CHANGE] Dashboards: defined container functions for common resources panels: containerDiskWritesPanel, containerDiskReadsPanel, containerDiskSpaceUtilization. #331
1818

1919
## 1.9.0 / 2021-05-18
2020

cortex-mixin/dashboards/dashboard-utils.libsonnet

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ local utils = import 'mixin-utils/utils.libsonnet';
149149
// summing the memory of the old instance/pod (whose metric will be stale for 5m) to the new instance/pod.
150150
'max by(%s) (container_memory_working_set_bytes{%s,container="%s"})' % [$._config.per_instance_label, $.namespaceMatcher(), containerName],
151151
'min(container_spec_memory_limit_bytes{%s,container="%s"} > 0)' % [$.namespaceMatcher(), containerName],
152+
], ['{{%s}}' % $._config.per_instance_label, 'limit']) +
153+
{
154+
seriesOverrides: [
155+
{
156+
alias: 'limit',
157+
color: '#E02F44',
158+
fill: 0,
159+
},
160+
],
161+
yaxes: $.yaxes('bytes'),
162+
tooltip: { sort: 2 }, // Sort descending.
163+
},
152164

153165
containerNetworkPanel(title, metric, instanceName)::
154166
$.panel(title) +

0 commit comments

Comments
 (0)