Skip to content

Commit

Permalink
Merge pull request #290 from grafana/fix-unhealthy-pods-in-rollout-da…
Browse files Browse the repository at this point in the history
…shboard

Fix 'Unhealthy pods' in Cortex Rollout dashboard
  • Loading branch information
pracucci authored Apr 7, 2021
2 parents a8dc588 + 5516a8c commit b8d293a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## master / unreleased

* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289
* [FEATURE] Added "Cortex / Rollout progress" dashboard. #289 #290
* [ENHANCEMENT] Added `newCompactorStatefulSet()` function to create a custom statefulset for the compactor. #287
* [ENHANCEMENT] Added option to configure compactor job name used in dashboards and alerts. #287
* [BUGFIX] Fixed `CortexCompactorRunFailed` false positives. #288
Expand Down
4 changes: 2 additions & 2 deletions cortex-mixin/dashboards/dashboard-utils.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
tooltip: { sort: 2 }, // Sort descending.
},

newStatPanel(queries, legends='', unit='percentunit', thresholds=[], instant=false, novalue='')::
newStatPanel(queries, legends='', unit='percentunit', decimals=1, thresholds=[], instant=false, novalue='')::
super.queryPanel(queries, legends) + {
type: 'stat',
targets: [
Expand All @@ -191,7 +191,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
fieldConfig: {
defaults: {
color: { mode: 'thresholds' },
decimals: 1,
decimals: decimals,
thresholds: {
mode: 'absolute',
steps: thresholds,
Expand Down
2 changes: 1 addition & 1 deletion cortex-mixin/dashboards/rollout-progress.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
{ color: 'green', value: null },
{ color: 'orange', value: 1 },
{ color: 'red', value: 2 },
], instant=true, novalue='All healthy') + {
], instant=true, novalue='All healthy', unit='short', decimals=0) + {
options: {
text: {
// Small font size since we may have many entries during a rollout.
Expand Down

0 comments on commit b8d293a

Please sign in to comment.