Skip to content
RED SAGSkills
hard20 pts · first answer countsprometheusobservabilityon-call

Alert silent when the service dies

The alert below never fired when the payments service crashed completely and stopped being scraped. Why, and what is the fix?

- alert: PaymentsHighErrorRate
  expr: |
    sum(rate(http_requests_total{job="payments",code=~"5.."}[5m]))
      / sum(rate(http_requests_total{job="payments"}[5m])) > 0.05
  for: 5m
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions