ArkadyB
ArkadyB

Reputation: 1275

Building CPU usage graph in Grafana for Docker container

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

Answers (1)

brian-brazil
brian-brazil

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

Related Questions