blob: 5654068bde4998e3a95f8d4e57c22b268ba416ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
groups:
- name: django
rules:
- alert: django/errors
expr: increase(django_http_responses_total_by_status_total{status=~"5.."}[5m]) > 0
for: 5m
labels:
severity: page
annotations:
summary: "Django is experiencing 5xx errors"
description: "Django is experiencing 5xx errors on {{ $labels.namespace }}/{{ $labels.job }}"
- alert: django/latency-elevated
expr: histogram_quantile(0.95, rate(django_http_requests_latency_seconds_by_view_method_bucket{view!="api:github-artifacts", view!="api:github-webhook-filter", view!="home:home", view!="content:tag"}[5m])) > 1.0
for: 15m
labels:
severity: warning
annotations:
summary: "Django route is experiencing high latency"
description: "Django route {{ $labels.method }} {{ $labels.view }} has raised latency"
- alert: django/latency-high
expr: histogram_quantile(0.95, rate(django_http_requests_latency_seconds_by_view_method_bucket{view!="api:github-artifacts", view!="api:github-webhook-filter", view!="home:home", view!="content:tag"}[5m])) > 10.0
for: 15m
labels:
severity: page
annotations:
summary: "Django route is experiencing high latency"
description: "Django route {{ $labels.method }} {{ $labels.view }} is experiencing high latency"
|