prom-label-proxy icon indicating copy to clipboard operation
prom-label-proxy copied to clipboard

Query fails with sum(irate(query_here[interval:resolution]))

Open IbraheemAlSaady opened this issue 4 years ago • 1 comments

Trying to run this query sum(irate(container_network_receive_bytes_total{cluster="workload-1"}[4h:1h])) by (pod) but its not working

Grafana error: Cannot read property 'result' of undefined

Here is the request endpoint

/api/datasources/proxy/3/api/v1/query_range?query=sum(irate(container_network_receive_bytes_total%7Bcluster%3D%22workload-1%22%7D%5B4h%3A1h%5D))&start=1613397765&end=1613401365&step=15&namespace=monitoring

From Grafana, that is actually returning a 200 response, but the body is empty.

However, running this works just fine sum(irate(container_network_receive_bytes_total{cluster="workload-1"}[4h])) by (pod)

The difference is [4h:1h] in the first query vs [4h] in the second query

Any idea why?

IbraheemAlSaady avatar Feb 15 '21 14:02 IbraheemAlSaady

this is working fine with the latest prom-label-proxy for me. Can you try to upgrade?

simonpasquier avatar Aug 27 '21 08:08 simonpasquier

Closing for now. Feel free to reopen if you can reproduce with the latest version.

simonpasquier avatar Jun 15 '23 07:06 simonpasquier