The statement I'm currently using is
sum by(pod_name) (rate(container_cpu_usage_seconds_total{pod=~"customer-invoice-task.*", container!="", container!="POD", container!=" one-pilot-initcontainer", namespace=~"customer"}[1m])) If the time range I want to view is 7 days, this is shown in the legend as a 7-day line chart. But the effect I want is to take the maximum value of each pod_name over a 7 day period and the relative time. I tried using 1. max(sum by(pod_name) (rate(container_cpu_usage_seconds_total{pod=~"customer-invoice-task.*", container!="", container!="POD", container!="one-pilot-initcontainer", namespace=~"customer"}[1m]))) 2. max_over_time(sum by(pod_name) (rate(container_cpu_usage_seconds_total{pod=~"customer-invoice-task.*", container!="", container!=" POD", container!="one-pilot-initcontainer", namespace=~"customer"}[1m]))[7d:]) None of these work for my purposes, so I have to ask for help here -- 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/8ad9a12f-6f88-42f3-94d6-bc2ea8e1c9b0n%40googlegroups.com.