Skip to content

Commit

Permalink
Merge pull request #17 from SomeBlackMagic/nginx500fix
Browse files Browse the repository at this point in the history
 bump chart version & fixed chart  alerts 500s
  • Loading branch information
wirwolf authored Aug 28, 2024
2 parents 905829b + 2f540ad commit 1a5a1d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/ingress-nginx-monitoring/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: ingress-nginx-monitoring
description: Monitor nginx ingress controller
type: application
version: 1.2.6
appVersion: 1.2.6
version: 1.2.7
appVersion: 1.2.7
icon: https://raw.githubusercontent.com/SomeBlackMagic/helm-charts/master/charts/ingress-nginx-monitoring/nginx-prometheus-grafana.png
keywords:
- http
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:

{{- if $.Values.prometheus.rule.alerts.tooMany500s.enabled }}
- alert: NGINXTooMany500s
expr: 100 * (sum by (ingress, exported_namespace, status, method, path, host) (rate(nginx_ingress_controller_requests{status=~"5.+", controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[2h])) / sum by (ingress, exported_namespace, status, method, path, host) (rate(nginx_ingress_controller_requests{controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[2h]))) > 10
expr: 100 * (sum by(ingress, exported_namespace, status,method,path,host) (rate(nginx_ingress_controller_requests{status=~"5.+", controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[2h])) / sum by(ingress, exported_namespace, status,method,path,host) (rate(nginx_ingress_controller_requests{controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[2h]))) > 10
for: {{ $.Values.prometheus.rule.alerts.tooMany500s.for }}
labels:
severity: "{{ $.Values.prometheus.rule.alerts.tooMany500s.severity }}"
Expand All @@ -50,7 +50,7 @@ spec:

{{- if $.Values.prometheus.rule.alerts.tooMany400s.enabled }}
- alert: NGINXTooMany400s
expr: 100 * (sum by (ingress, exported_namespace, status, method, path, host) (rate(nginx_ingress_controller_requests{status=~"4.+", controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[1h])) / sum by (ingress, exported_namespace, status, method, path, host) (rate(nginx_ingress_controller_requests{controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[1h]))) > 5
expr: 100 * (sum by(ingress, exported_namespace, status,method,path,host) (rate(nginx_ingress_controller_requests{status=~"4.+", controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[1h])) / sum by(ingress, exported_namespace, status,method,path,host) (rate(nginx_ingress_controller_requests{controller_class=~"{{ $.Values.prometheus.rule.ingressClass}}"}[1h]))) > 5
for: 1m
labels:
severity: "{{ $.Values.prometheus.rule.alerts.tooMany400s.severity }}"
Expand All @@ -60,7 +60,6 @@ spec:
{{- end }}

{{- with $.Values.prometheus.rule.additionalAlerts }}
{{ . | nindent 6 }}
{{ . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 1a5a1d0

Please sign in to comment.