FIX(grafana): show CPU Usage as percentage per node
- Change panel type from gauge to stat - Add * 100 to query for percentage - Show each node's CPU usage horizontally - Set thresholds at 50% (orange), 80% (red)
This commit is contained in:
@@ -2227,23 +2227,26 @@
|
|||||||
"defaults": {
|
"defaults": {
|
||||||
"mappings": [],
|
"mappings": [],
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "percentage",
|
"mode": "absolute",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"color": "green"
|
"color": "green",
|
||||||
|
"value": null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"color": "orange",
|
"color": "orange",
|
||||||
"value": 70
|
"value": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"color": "red",
|
"color": "red",
|
||||||
"value": 85
|
"value": 80
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"unit": "s",
|
"unit": "percent",
|
||||||
"unitScale": true
|
"decimals": 1,
|
||||||
|
"min": 0,
|
||||||
|
"max": 100
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
@@ -2255,9 +2258,10 @@
|
|||||||
},
|
},
|
||||||
"id": 77,
|
"id": 77,
|
||||||
"options": {
|
"options": {
|
||||||
"minVizHeight": 75,
|
"colorMode": "value",
|
||||||
"minVizWidth": 75,
|
"graphMode": "none",
|
||||||
"orientation": "auto",
|
"justifyMode": "auto",
|
||||||
|
"orientation": "horizontal",
|
||||||
"reduceOptions": {
|
"reduceOptions": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"lastNotNull"
|
"lastNotNull"
|
||||||
@@ -2265,9 +2269,7 @@
|
|||||||
"fields": "",
|
"fields": "",
|
||||||
"values": false
|
"values": false
|
||||||
},
|
},
|
||||||
"showThresholdLabels": false,
|
"textMode": "auto"
|
||||||
"showThresholdMarkers": true,
|
|
||||||
"sizing": "auto"
|
|
||||||
},
|
},
|
||||||
"pluginVersion": "10.3.1",
|
"pluginVersion": "10.3.1",
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -2278,15 +2280,15 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": true,
|
"exemplar": true,
|
||||||
"expr": "rate(minio_node_process_cpu_total_seconds{job=~\"$scrape_jobs\"}[5m])",
|
"expr": "rate(minio_node_process_cpu_total_seconds{job=\"minio\"}[5m]) * 100",
|
||||||
"interval": "",
|
"interval": "",
|
||||||
"legendFormat": "{{server}}",
|
"legendFormat": "{{server}}",
|
||||||
"range": true,
|
"instant": true,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "CPU Usage",
|
"title": "CPU Usage",
|
||||||
"type": "gauge"
|
"type": "stat"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
|||||||
Reference in New Issue
Block a user