CPU usage counters represent the CPU time spent in seconds. You can get the
CPU usage (time spent in seconds, per second) by using the rate function:

rate(container_cpu_usage_seconds_total[1m])

/MR

On Tue, Sep 1, 2020 at 11:32 AM Manish G <manish.c.ghildi...@gmail.com>
wrote:

> Hi All,
>
> I want to display pod cpu usage graph for my application running in
> kubernetes. I want to show the graph for CPU usage at a given time, like
> what we have in visual vm.
> Metrics I see available is container_cpu_usage_seconds_total. But this is
> a counter.
> It doesn't suit my usecase as cpu usage can go up and down.
>
> Is there any other suitable metrics available?
>
> With regards
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/CAOFd6ihj9rFsmDa7AWWXsAaMFO7E0BVvZwaFA6oHsEr6EfeM%2BA%40mail.gmail.com
> <https://groups.google.com/d/msgid/prometheus-users/CAOFd6ihj9rFsmDa7AWWXsAaMFO7E0BVvZwaFA6oHsEr6EfeM%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAMV%3D_gbuS4SyfFD%3DcpQucZT-Ns4843uD_gNi-gKoPUXdkqAPaQ%40mail.gmail.com.

Reply via email to