alerts.yaml 376 B

12345678910111213141516
  1. ---
  2. apiVersion: monitoring.coreos.com/v1
  3. kind: PrometheusRule
  4. metadata:
  5. labels:
  6. prometheus: traefik
  7. role: alert-rules
  8. name: prometheus-traefik-rules
  9. namespace: kube-system
  10. spec:
  11. groups:
  12. - name: ./traefik.rules
  13. rules:
  14. - alert: Traefik5xxErr
  15. expr: sum by (service) (increase(traefik_service_requests_total{code=~"5..",protocol="http"}[5m])) > 0