Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 9aae0bb

Browse files
authored
Merge pull request #14 from martin-helmich/bugfix/fix-gauge-values
Configure Gauges with correct thresholds and maxValues
2 parents 81752a1 + cc46527 commit 9aae0bb

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

dist/dashboards/k8s-cluster.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"datasource": "$datasource",
6666
"format": "percentunit",
6767
"gauge": {
68-
"maxValue": 100,
68+
"maxValue": 1,
6969
"minValue": 0,
7070
"show": true,
7171
"thresholdLabels": false,
@@ -120,7 +120,7 @@
120120
"refId": "A"
121121
}
122122
],
123-
"thresholds": "80,90",
123+
"thresholds": ".8,.9",
124124
"title": "Cluster Pod Usage",
125125
"type": "singlestat",
126126
"valueFontSize": "80%",
@@ -145,7 +145,7 @@
145145
"datasource": "$datasource",
146146
"format": "percentunit",
147147
"gauge": {
148-
"maxValue": 100,
148+
"maxValue": 1,
149149
"minValue": 0,
150150
"show": true,
151151
"thresholdLabels": false,
@@ -200,7 +200,7 @@
200200
"refId": "A"
201201
}
202202
],
203-
"thresholds": "80,90",
203+
"thresholds": ".8,.9",
204204
"title": "Cluster CPU Usage",
205205
"type": "singlestat",
206206
"valueFontSize": "80%",
@@ -225,7 +225,7 @@
225225
"datasource": "$datasource",
226226
"format": "percentunit",
227227
"gauge": {
228-
"maxValue": 100,
228+
"maxValue": 1,
229229
"minValue": 0,
230230
"show": true,
231231
"thresholdLabels": false,
@@ -280,7 +280,7 @@
280280
"refId": "A"
281281
}
282282
],
283-
"thresholds": "80,90",
283+
"thresholds": ".8,.9",
284284
"title": "Cluster Memory Usage",
285285
"type": "singlestat",
286286
"valueFontSize": "80%",
@@ -305,7 +305,7 @@
305305
"datasource": "$datasource",
306306
"format": "percentunit",
307307
"gauge": {
308-
"maxValue": 100,
308+
"maxValue": 1,
309309
"minValue": 0,
310310
"show": true,
311311
"thresholdLabels": false,
@@ -360,7 +360,7 @@
360360
"refId": "A"
361361
}
362362
],
363-
"thresholds": "80,90",
363+
"thresholds": ".8,.9",
364364
"title": "Cluster Disk Usage",
365365
"type": "singlestat",
366366
"valueFontSize": "80%",

src/dashboards/k8s-cluster.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"datasource": "$datasource",
6666
"format": "percentunit",
6767
"gauge": {
68-
"maxValue": 100,
68+
"maxValue": 1,
6969
"minValue": 0,
7070
"show": true,
7171
"thresholdLabels": false,
@@ -120,7 +120,7 @@
120120
"refId": "A"
121121
}
122122
],
123-
"thresholds": "80,90",
123+
"thresholds": ".8,.9",
124124
"title": "Cluster Pod Usage",
125125
"type": "singlestat",
126126
"valueFontSize": "80%",
@@ -145,7 +145,7 @@
145145
"datasource": "$datasource",
146146
"format": "percentunit",
147147
"gauge": {
148-
"maxValue": 100,
148+
"maxValue": 1,
149149
"minValue": 0,
150150
"show": true,
151151
"thresholdLabels": false,
@@ -200,7 +200,7 @@
200200
"refId": "A"
201201
}
202202
],
203-
"thresholds": "80,90",
203+
"thresholds": ".8,.9",
204204
"title": "Cluster CPU Usage",
205205
"type": "singlestat",
206206
"valueFontSize": "80%",
@@ -225,7 +225,7 @@
225225
"datasource": "$datasource",
226226
"format": "percentunit",
227227
"gauge": {
228-
"maxValue": 100,
228+
"maxValue": 1,
229229
"minValue": 0,
230230
"show": true,
231231
"thresholdLabels": false,
@@ -280,7 +280,7 @@
280280
"refId": "A"
281281
}
282282
],
283-
"thresholds": "80,90",
283+
"thresholds": ".8,.9",
284284
"title": "Cluster Memory Usage",
285285
"type": "singlestat",
286286
"valueFontSize": "80%",
@@ -305,7 +305,7 @@
305305
"datasource": "$datasource",
306306
"format": "percentunit",
307307
"gauge": {
308-
"maxValue": 100,
308+
"maxValue": 1,
309309
"minValue": 0,
310310
"show": true,
311311
"thresholdLabels": false,
@@ -360,7 +360,7 @@
360360
"refId": "A"
361361
}
362362
],
363-
"thresholds": "80,90",
363+
"thresholds": ".8,.9",
364364
"title": "Cluster Disk Usage",
365365
"type": "singlestat",
366366
"valueFontSize": "80%",

0 commit comments

Comments
 (0)