Verified Commit 1a31e348 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[Alerting] Adjust alerts for HTTP errors

parent 3092b3a5
......@@ -172,8 +172,7 @@ groups:
- name: services
rules:
- alert: 404Errors
expr: increase(traefik_service_requests_total{code=~"4[0-9][0-8]"}[15m]) > 50
for: "2m"
expr: increase(traefik_service_requests_total{code=~"4[0-9][0-8]"}[1h]) > 50
labels:
severity: warning
annotations:
......@@ -181,8 +180,7 @@ 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}"}[15m]) > 50
for: "2m"
expr: increase(traefik_service_requests_total{code=~"5[0-9]{2}"}[10m]) > 50
labels:
severity: warning
annotations:
......@@ -191,7 +189,7 @@ groups:
dashboard: https://grafana.picasoft.net/d/3ipsWfViz/traefik?var-node={{ $labels.instance }}&var-service={{ $labels.service_name }}
- alert: EndpointDown
expr: probe_success == 0
for: "2m"
for: "5m"
labels:
severity: critical
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