You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
what's the scenario
query the average value of the last 5 minutes series of
prometheus_http_requests_total
, and group bycode
what's the issue
The
<aggregation>_over_time
functions accept range vector, but do not support aggregation modifierby
orwithout
, while aggregation-operators only accept instant vector.examples
the actual dataset
avg_over_time(prometheus_http_requests_total[5m])
what's the expected query
avg_over_time(prometheus_http_requests_total[5m]) by (code)
what's the actual query
avg(avg_over_time(prometheus_http_requests_total[5m])) by (code)
reference
you can try these promql queries at https://demo.promlens.com/
Beta Was this translation helpful? Give feedback.
All reactions