![]() So by knowing how many shares the process consumes, you can always find the percent of CPU utilization. ![]() ![]() Cgroup divides a CPU core time to 1024 shares. One way to do is to leverage proper cgroup resource reporting. The rate or irate are equivalent to the percentage (out of 1) since they are how many seconds used of a second, but usually need to be aggregated across cores/cpus on the machine.īrian Brazil's post on Prometheus CPU monitoring is very relevant and useful: Solution 2 something like: avg by (instance) (irate(process_cpu_seconds_total)) If you're wanting to just monitor the percentage of CPU that the prometheus process uses, you can use process_cpu_seconds_total, e.g.
0 Comments
Leave a Reply. |