Verified Commit cde2c270 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Alerting] Adjust alerts for HTTP errors

parent 1a31e348
......@@ -172,7 +172,8 @@ groups:
- name: services
rules:
- alert: 404Errors
expr: increase(traefik_service_requests_total{code=~"4[0-9][0-8]"}[1h]) > 50
expr: increase(traefik_service_requests_total{code=~"4[0-9][0-8]"}[15m]) > 50
for: "1h"
labels:
severity: warning
annotations:
......@@ -180,7 +181,8 @@ groups:
description: Service {{ $labels.service_name }} running on {{ $labels.instance }} encoutering lot of {{ $labels.code }} errors.
dashboard: https://grafana.picasoft.net/d/3ipsWfViz/traefik?var-node={{ $labels.instance }}&var-service={{ $labels.service_name }}
- alert: 500Errors
expr: increase(traefik_service_requests_total{code=~"5[0-9]{2}"}[10m]) > 50
expr: increase(traefik_service_requests_total{code=~"5[0-9]{2}"}[15m]) > 50
for: "1m"
labels:
severity: warning
annotations:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment