mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 01:17:19 +08:00
Publish
This commit is contained in:
parent
6ba9eb104c
commit
c4de107679
1 changed files with 23 additions and 0 deletions
23
dist/rules/cloudflare/lablabs-cloudflare-exporter.yml
vendored
Normal file
23
dist/rules/cloudflare/lablabs-cloudflare-exporter.yml
vendored
Normal 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 }}"
|
||||
Loading…
Reference in a new issue