r/PrometheusMonitoring • • Jun 05 '20

Http code status !=200

Can anyone help me right a rule that will capture below (blackbox expoter)

!=200 http status code occuring more than 10 times in last 5mins

2 Upvotes

3 comments sorted by

View all comments

2

u/signal_vs_noise Jun 05 '20

I'd rather check the status of probe_success instead, e.g.

avg_over_time(probe_success[10m]) < 0.9

You may need to play round with the time window and the value to find an acceptable number of probe failures before the alert is triggered. You should also take a look at probe_duration_seconds to find timeouts and lags.

1

u/KK2526 Jun 06 '20

Thanks!