cpu
Reference for the `cpu` collector.
cpu· collector · runnanook doc cpufor the same content in your terminal.
Per-core and total CPU usage percentage.
Metrics
| Metric | Kind | Unit | Description |
|---|---|---|---|
cpu.usage | numeric | % | global CPU usage percentage |
cpu.core.usage | numeric | % | usage per core. Labels: core. |
Examples
Collect every 5s
[[]]
= "cpu"
= 5
Sustained high CPU on the box
[[]]
= "cpu.usage > 80%"
= 12 # ~1 minute at 5s interval
= "ops"
Single core pinned hot
[[]]
= "cpu.core.usage > 95%"
= 24
= "ops"
= "core {{ labels.core }} stuck at {{ value }}"