mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-15 17:50:48 +00:00
b3b400137a
Add blackbox exporter Add mysql exporter
25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
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
|