Hi all

I am trying to calculate POD CPU usage for the last 24 hrs, I have been 
trying using avg_over_time and rate(), but the difference is huge. Can 
someone please recommend the best way to get the pod CPU usage for a long 
period of time?

Here an example of the query I am using:

sum by (node)(min_over_time(kube_pod_labels{label_project="'<POD 
label>"}[24h]) * on (pod) group_right () 
avg_over_time(container_cpu_usage_seconds_total{image!=""}[24h]))


Thanks a lot in advance.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/27b3f8d2-6c15-4974-8ad2-02c2ab5ee1a6n%40googlegroups.com.

Reply via email to