You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/generic-service/templates/alerts.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -165,16 +165,18 @@ spec:
165
165
topic: ingress
166
166
annotations: {{- include "generic-service.alert-annotations" . | nindent 12 }} HTTP responses slower than usual
167
167
description: '{{ include "generic-service.fullname" . }} HTTP responses are {{"{{ $value }}"}}x slower in the last {{ .Values.alerting.http.sampleInterval }} than in the last {{ .Values.alerting.http.referenceInterval }}.'
168
+
168
169
- alert: Http4xx
169
170
expr: |
170
-
(sum(rate({{ include "generic-service.request-code-count-metric" . }}"4.."}[{{ .Values.alerting.http.sampleInterval }}])) - sum(rate({{ include "generic-service.request-code-count-metric" . }}"499"}[{{ .Values.alerting.http.sampleInterval }}]))) /
171
+
(sum(rate({{ include "generic-service.request-code-count-metric" . }}"4.."}[{{ .Values.alerting.http.sampleInterval }}])) - sum(rate({{ include "generic-service.request-code-count-metric" . }}"499"}[{{ .Values.alerting.http.sampleInterval }}]))) /
171
172
(sum(rate({{ include "generic-service.request-code-count-metric" . }}"4.."}[{{ .Values.alerting.http.referenceInterval }}])) - sum(rate({{ include "generic-service.request-code-count-metric" . }}"499"}[{{ .Values.alerting.http.referenceInterval }}]))) > {{ .Values.alerting.http.max4xxRatio }}
172
173
labels: {{- include "generic-service.alert-labels" . | nindent 12 }} warning
description: '{{ include "generic-service.fullname" . }} gave {{"{{ $value }}"}}x more HTTP 4xx responses per request in the last {{ .Values.alerting.http.sampleInterval }} than in the last {{ .Values.alerting.http.referenceInterval }}.'
176
+
175
177
- alert: HttpClientCancelled
176
178
expr: |
177
-
(sum(rate({{ include "generic-service.request-code-count-metric" . }}"499"}[{{ .Values.alerting.http.sampleInterval }}]))) /
179
+
(sum(rate({{ include "generic-service.request-code-count-metric" . }}"499"}[{{ .Values.alerting.http.sampleInterval }}]))) /
0 commit comments