PromQL find total request in last minute?

Viewed 14

Hello I am new to PromQL . I am trying to add alert in Grafana using PromQL 'Create Alert when requests count for last one minute greater than 50 and status_code is not 200'

I am trying to achieve using

sum_over_time(http_requests_total{status_code!~'2.*'}[1m])

But facing error. Can anyone tell what I am missing?

0 Answers
Related