From 93fd83c2d2d7eede8f57b2155f07d8bdcf0a0aac Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Wed, 24 Apr 2024 19:42:17 +0200 Subject: Exclude home and tag views from latency alerts These are known issues and we probably won't do anything about them, so stop alerting us about it. --- kubernetes/namespaces/monitoring/alerts/alerts.d/django.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kubernetes/namespaces') diff --git a/kubernetes/namespaces/monitoring/alerts/alerts.d/django.yaml b/kubernetes/namespaces/monitoring/alerts/alerts.d/django.yaml index 3197bf7..ec35dda 100644 --- a/kubernetes/namespaces/monitoring/alerts/alerts.d/django.yaml +++ b/kubernetes/namespaces/monitoring/alerts/alerts.d/django.yaml @@ -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 @@ -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 -- cgit v1.2.3