Prometheus query for max and min memory usage by pod

518 views
Skip to first unread message

Kamil Sebastian

unread,
Jun 18, 2019, 5:33:46 AM6/18/19
to Prometheus Users
Hi I am trying to construct a query for Prometheus to get maximum and minimum memory usage for particular range of time. But I am not sure if I am doing it right.

For the max memory usage I am using:
max(max_over_time(container_memory_usage_bytes{image!="",pod_name=~"containername-XXXX-.*"}[7d])) by (pod_name, image)
but whatever I put as a time range it gives me data for the last hour. 
Also I am not sure how can I query for max and min memory on the same graph for list of containers where the XXXX is a value,
Reply all
Reply to author
Forward
0 new messages