discourse
Overview
Jsonnet source code is available at github.com/grafana/jsonnet-libs
Alerts
Complete list of pregenerated alerts is available here.
DiscourseAlerts
DiscourseRequestsHigh5xxErrors
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
DiscourseRequestsHigh4xxErrors
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
Dashboards
Following dashboards are generated from mixins and hosted on github: