Skip to content

Commit

Permalink
Exclude home and tag views from latency alerts
Browse files Browse the repository at this point in the history
These are known issues and we probably won't do anything about them, so
stop alerting us about it.
  • Loading branch information
jchristgit committed Apr 24, 2024
1 parent e695cb8 commit 93fd83c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes/namespaces/monitoring/alerts/alerts.d/django.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ groups:
description: "Django is experiencing 5xx errors on {{ $labels.namespace }}/{{ $labels.job }}"

- alert: DjangoLatencyElevated
expr: histogram_quantile(0.95, rate(django_http_requests_latency_seconds_by_view_method_bucket{view!="api:github-artifacts"}[5m])) > 1.0
expr: histogram_quantile(0.95, rate(django_http_requests_latency_seconds_by_view_method_bucket{view!="api:github-artifacts", view!="home:home", view!="content:tag"}[5m])) > 1.0
for: 3m
labels:
severity: warning
Expand All @@ -20,7 +20,7 @@ groups:
description: "Django route {{ $labels.method }} {{ $labels.view }} has raised latency"

- alert: DjangoLatencyHigh
expr: histogram_quantile(0.95, rate(django_http_requests_latency_seconds_by_view_method_bucket{view!="api:github-artifacts"}[5m])) > 10.0
expr: histogram_quantile(0.95, rate(django_http_requests_latency_seconds_by_view_method_bucket{view!="api:github-artifacts", view!="home:home", view!="content:tag"}[5m])) > 10.0
for: 3m
labels:
severity: page
Expand Down

0 comments on commit 93fd83c

Please sign in to comment.