Reputation: 1275
I have connected cAdvisor -> Prometheus and Grafana to get graphs for my Docker containers. One of them is the CPU load, but i can only see the cumulative usage lines and not actually a value at the moment. Id love to see somethin similar cAdvisor is showing. Whts the way to do so?
Upvotes: 0
Views: 1867
Reputation: 34172
You're looking for the irate()
and rate()
functions. Using irate(my_metric[5m])
will calculate the per-second value for you.
Upvotes: 2