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

Commit b8d293a

Browse files
authored
Merge pull request #290 from grafana/fix-unhealthy-pods-in-rollout-dashboard
Fix 'Unhealthy pods' in Cortex Rollout dashboard
2 parents a8dc588 + 5516a8c commit b8d293a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## master / unreleased
44

5-
* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289
5+
* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289 #290
66
* [ENHANCEMENT] Added `newCompactorStatefulSet()` function to create a custom statefulset for the compactor. #287
77
* [ENHANCEMENT] Added option to configure compactor job name used in dashboards and alerts. #287
88
* [BUGFIX] Fixed `CortexCompactorRunFailed` false positives. #288

cortex-mixin/dashboards/dashboard-utils.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
173173
tooltip: { sort: 2 }, // Sort descending.
174174
},
175175

176-
newStatPanel(queries, legends='', unit='percentunit', thresholds=[], instant=false, novalue='')::
176+
newStatPanel(queries, legends='', unit='percentunit', decimals=1, thresholds=[], instant=false, novalue='')::
177177
super.queryPanel(queries, legends) + {
178178
type: 'stat',
179179
targets: [
@@ -191,7 +191,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
191191
fieldConfig: {
192192
defaults: {
193193
color: { mode: 'thresholds' },
194-
decimals: 1,
194+
decimals: decimals,
195195
thresholds: {
196196
mode: 'absolute',
197197
steps: thresholds,

cortex-mixin/dashboards/rollout-progress.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
177177
{ color: 'green', value: null },
178178
{ color: 'orange', value: 1 },
179179
{ color: 'red', value: 2 },
180-
], instant=true, novalue='All healthy') + {
180+
], instant=true, novalue='All healthy', unit='short', decimals=0) + {
181181
options: {
182182
text: {
183183
// Small font size since we may have many entries during a rollout.

0 commit comments

Comments
 (0)