Hello All,
I am trying to get maximum CPU and Memory utilization of a pod using query_range endpoint.
Query is:
max by (pod) (max_over_time(sum by (pod)(container_memory_working_set_bytes{pod=~"pod-name-.*", container!=""})[1d:]))
and same query I am trying with the query_range endpoint. Below is the API call.
curl -g host:port/api/v1/query_range --data-urlencode query='max by (pod) (max_o
ver_time(sum by (pod)(container_memory_working_set_bytes{pod=~"pod-name-.*", container!=""})[1d:]))' --data-urlencode start=2022-04-06T0
1:00:51.781Z --data-urlencode end=2022-04-08T23:00:51.781Z --data-urlencode step="120"
Data I am getting in response is the list of multiple values.
Here expectation is to get only 1 value for 1 pod, which is to be maximum
Thank You in advance