Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🤖 tweak alert timings #307

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resources/prometheusrule-alerts/nginx-alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ spec:

- alert: NginxIngressSuccessRate-default-ingress
annotations:
message: 'Percentage of successful requests of nginx-default over the last 10 minutes is less than 95%.
message: 'Percentage of successful requests of nginx-default over the last 15 minutes is less than 95%.
NOTE: Ignoring 404s and 499s in this metric, since a 404 is a normal response for errant requests'
runbook_url: https://github.com/ministryofjustice/cloud-platform-terraform-monitoring/blob/main/resources/prometheusrule-alerts/README.md#nginx-success-rate
expr: sum(rate(nginx_ingress_controller_requests{status!~"[4-5].*", controller_class=~"k8s.io/ingress-default"}[5m]))/(sum(rate(nginx_ingress_controller_requests{controller_class=~"k8s.io/ingress-default"}[5m]))-
Expand All @@ -160,11 +160,11 @@ spec:
severity: warning
- alert: NginxIngressSuccessRate-modsec-ingress
annotations:
message: 'Percentage of successful requestsof nginx-modsec over the last 10 minutes is less than 95%.
message: 'Percentage of successful requests of nginx-modsec over the last 15 minutes is less than 95%.
NOTE: Ignoring 404s and 499s in this metric, since a 404 is a normal response for errant requests'
runbook_url: https://github.com/ministryofjustice/cloud-platform-terraform-monitoring/blob/main/resources/prometheusrule-alerts/README.md#nginx-success-rate
expr: sum(rate(nginx_ingress_controller_requests{status!~"[4-5].*", controller_class=~"k8s.io/ingress-modsec"}[5m]))/(sum(rate(nginx_ingress_controller_requests{controller_class=~"k8s.io/ingress-modsec"}[5m]))-
sum(rate(nginx_ingress_controller_requests{status=~"404|499", controller_class=~"k8s.io/ingress-modsec"}[5m]))) * 100 < 95
for: 10m
labels:
severity: warning
severity: warning
Loading