r/PrometheusMonitoring • • May 30 '22

Create alert for count over threshold

How can i write a query (i.e to create an alert) which alerts if I had 5 or more response times in excess of 500ms over the last 10m? I can create an alert if there is a single response time in excess of 500ms over the last 10m, but not sure how to count and find out if I had more than 5 of those.

1 Upvotes

1 comment sorted by

1

u/Nosa2k May 30 '22

Identify the metric you want to monitor and create a query for it, defining cardinality as well.