Skip to content
Snippets Groups Projects
Commit 1db123c8 authored by ale's avatar ale
Browse files

Add CPU throttling indicator

Add an indicator of whether the CPU has been throtting (usually due
to thermal constraints) to the host dashboard, overlaid on top of
the CPU usage graph as a red line.
parent 98870b03
Branches
No related tags found
No related merge requests found
Pipeline #90361 failed
...@@ -132,6 +132,28 @@ ...@@ -132,6 +132,28 @@
} }
} }
] ]
},
{
"matcher": {
"id": "byName",
"options": "throttle"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "custom.stacking",
"value": {
"group": "A",
"mode": "none"
}
}
]
} }
] ]
}, },
...@@ -190,6 +212,20 @@ ...@@ -190,6 +212,20 @@
"legendFormat": "{{mode}} ", "legendFormat": "{{mode}} ",
"refId": "B", "refId": "B",
"step": 45 "step": 45
},
{
"datasource": {
"type": "prometheus",
"uid": "P49960DE5880E8C68"
},
"editorMode": "code",
"expr": "sum(irate(node_cpu_core_throttles_total{host=~\"$server\"}[$__rate_interval])) > bool 0 > 0",
"hide": false,
"instant": false,
"interval": "5m",
"legendFormat": "throttle",
"range": true,
"refId": "C"
} }
], ],
"title": "CPU: utilization", "title": "CPU: utilization",
...@@ -2853,4 +2889,4 @@ ...@@ -2853,4 +2889,4 @@
"uid": "W8eE_Qgik", "uid": "W8eE_Qgik",
"version": 4, "version": 4,
"weekStart": "" "weekStart": ""
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment