This commit is contained in:
samber 2022-10-03 14:58:10 +00:00
parent 6ba9eb104c
commit c4de107679

View file

@ -0,0 +1,23 @@
groups:
- name: LablabsCloudflareExporter
rules:
- alert: CloudflareHttp4xxErrorRate
expr: '(sum by(zone) (rate(cloudflare_zone_requests_status{status=~"^4.."}[15m])) / on (zone) sum by (zone) (rate(cloudflare_zone_requests_status[15m]))) * 100 > 5'
for: 0m
labels:
severity: warning
annotations:
summary: Cloudflare http 4xx error rate (instance {{ $labels.instance }})
description: "Cloudflare high HTTP 4xx error rate (> 5% for domain {{ $labels.zone }})\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: CloudflareHttp5xxErrorRate
expr: '(sum by (zone) (rate(cloudflare_zone_requests_status{status=~"^5.."}[5m])) / on (zone) sum by (zone) (rate(cloudflare_zone_requests_status[5m]))) * 100 > 5'
for: 0m
labels:
severity: critical
annotations:
summary: Cloudflare http 5xx error rate (instance {{ $labels.instance }})
description: "Cloudflare high HTTP 5xx error rate (> 5% for domain {{ $labels.zone }})\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"