1
0
Fork 0
mirror of https://github.com/monitoring-mixins/website.git synced 2024-12-14 11:37:31 +00:00
monitoring-mixins-website/assets/discourse/alerts.yaml

26 lines
1.1 KiB
YAML
Raw Permalink Normal View History

groups:
- name: DiscourseAlerts
rules:
- alert: DiscourseRequestsHigh5xxErrors
annotations:
description: '{{ printf "%.2f" $value }}% of all requests are resulting in 500
status codes, which is above the threshold 10%, indicating a potentially larger
issue for {{$labels.instance}}'
summary: More than 10% of all requests result in a 5XX.
expr: |
100 * rate(discourse_http_requests{status="500"}[5m]) / on() group_left() (sum(rate(discourse_http_requests[5m])) by (instance)) > 10
for: 5m
labels:
severity: critical
- alert: DiscourseRequestsHigh4xxErrors
annotations:
description: '{{ printf "%.2f" $value }}% of all requests are resulting in 400
status code, which is above the threshold 30%, indicating a potentially larger
issue for {{$labels.instance}}'
summary: More than 30% of all requests result in a 4XX.
expr: |
100 * rate(discourse_http_requests{status=~"^4.*"}[5m]) / on() group_left() (sum(rate(discourse_http_requests[5m])) by (instance)) > 30
for: 5m
labels:
severity: warning