Prometheus and PromQL 3 · Rates and aggregation

CPU used as a percentage

A common node_exporter query for host CPU use.

100 - (avg by (instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)

Official Prometheus and PromQL 3 documentation

More rates and aggregation commands

All rates and aggregation commands · Prometheus and PromQL 3 cheatsheet

Was this page helpful?