title: Prometheus Http query_range API maximum value
body: <p>I am trying to get maximum CPU and Memory utilization of a pod using query_range endpoint.</p>
  <p>Query is:</p>
  <pre><code>max by (pod) (max_over_time(sum by (pod)(container_memory_working_set_bytes{pod=~&quot;pod-name-.*&quot;, container!=&quot;&quot;})[1d:]))
  </code></pre>
  <p>and same query I am trying with the query_range endpoint. Below is the API call</p>
  <pre><code>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=~&quot;pod-name-.*&quot;, container!=&quot;&quot;})[1d:]))' --data-urlencode start=2022-04-06T0
  1:00:51.781Z --data-urlencode end=2022-04-08T23:00:51.781Z --data-urlencode step=&quot;120&quot;
  </code></pre>
  <p>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</p>
  <p>Thank You in advance</p>