aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-04-24 19:42:17 +0200
committerGravatar jchristgit <[email protected]>2024-04-24 19:48:47 +0200
commit93fd83c2d2d7eede8f57b2155f07d8bdcf0a0aac (patch)
tree18a44b43a962c091758221e1df092dee3eea7d86 /kubernetes/namespaces
parentAdd bellas user (diff)
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.
Diffstat (limited to 'kubernetes/namespaces')
-rw-r--r--kubernetes/namespaces/monitoring/alerts/alerts.d/django.yaml4
1 files changed, 2 insertions, 2 deletions
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