We should be able to write PromQL queries (using the existing metrics) that define the alert conditions for:
- Rise in 500 errors (number of 5xx response > threshold over x min)
- Webservice not responding (maybe using number of 5xx responses from the haproxy frontend?)
- Note that we already have health checks for webservices that will attempt restarting webservices that are not responding
- Using blackbox probes would be an interesting addition, but it’s not in scope for this task
- Webservice restarting often (we should have a metric for number of pod restarts)
If we can define alerts and see them fire in alertmanager, then we’re halfway there and we need a way to send notifications for these alerts to the right users.

