I can not get CPU usage in cores.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/c116492a-1fff-4122-b68a-a0294866efb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You want something like
rate(container_cpu_usage_seconds_total[5m])
The X_seconds_total metrics "count" the time spent executing since the container was created. A container using 53% of a core is executing 530ms out of every second, so the counter increases at 0.53 seconds per second, and the rate function calculates exactly that.
See this page
https://prometheus.io/docs/querying/examples/
for more examples.
/MR
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.