I would like to set an alert in prometheus when the usage of cpu is > 85%.
My host exposes this metrics.
process_cpu_seconds_total[5m])
How can I convert it into percentage cpu usage?
I would like to set an alert in prometheus when the usage of cpu is > 85%.
My host exposes this metrics.
process_cpu_seconds_total[5m])
How can I convert it into percentage cpu usage?
irate(process_cpu_seconds_total{job="prometheus"}[5m]) * 100 / 2 (number of CPU cores)
irate(process_cpu_seconds_total{job="prometheus"}[5m])*10