FIX(grafana): restore gauge design with percentage display

- Restore original gauge panel type
- Keep * 100 query and percent unit
- Set max to 100 for proper gauge range
This commit is contained in:
2026-01-10 17:58:11 +09:00
parent 11f9457236
commit da89c8dbf0

View File

@@ -2227,24 +2227,22 @@
"defaults": { "defaults": {
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "percentage",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "orange", "color": "orange",
"value": 50 "value": 70
}, },
{ {
"color": "red", "color": "red",
"value": 80 "value": 85
} }
] ]
}, },
"unit": "percent", "unit": "percent",
"decimals": 1,
"min": 0, "min": 0,
"max": 100 "max": 100
}, },
@@ -2258,10 +2256,9 @@
}, },
"id": 77, "id": 77,
"options": { "options": {
"colorMode": "value", "minVizHeight": 75,
"graphMode": "none", "minVizWidth": 75,
"justifyMode": "auto", "orientation": "auto",
"orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
@@ -2269,7 +2266,9 @@
"fields": "", "fields": "",
"values": false "values": false
}, },
"textMode": "auto" "showThresholdLabels": false,
"showThresholdMarkers": true,
"sizing": "auto"
}, },
"pluginVersion": "10.3.1", "pluginVersion": "10.3.1",
"targets": [ "targets": [
@@ -2283,12 +2282,12 @@
"expr": "rate(minio_node_process_cpu_total_seconds{job=\"minio\"}[5m]) * 100", "expr": "rate(minio_node_process_cpu_total_seconds{job=\"minio\"}[5m]) * 100",
"interval": "", "interval": "",
"legendFormat": "{{server}}", "legendFormat": "{{server}}",
"instant": true, "range": true,
"refId": "A" "refId": "A"
} }
], ],
"title": "CPU Usage", "title": "CPU Usage",
"type": "stat" "type": "gauge"
}, },
{ {
"datasource": { "datasource": {