Skip to content

Commit 9d23fb4

Browse files
committed
Update NGFHigh4xxRate alert to include status in description
1 parent 34b49b3 commit 9d23fb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

kubernetes/namespaces/loki/alert_rules.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ data:
219219
- alert: NGFHigh4xxRate
220220
expr: |
221221
(
222-
sum by (host) (
222+
sum by (host, status) (
223223
rate(
224224
{namespace="nginx-gateway", app_container="/nginx"}
225225
| json
@@ -229,7 +229,7 @@ data:
229229
)
230230
)
231231
/
232-
sum by (host) (
232+
sum by (host, status) (
233233
rate(
234234
{namespace="nginx-gateway", app_container="/nginx"}
235235
| json
@@ -244,7 +244,7 @@ data:
244244
annotations:
245245
summary: "High 4xx rate on {{ $labels.host }}"
246246
description: >
247-
{{ $value | humanize }}% of requests are returning 4xx on {{ $labels.host }}.
247+
{{ $value | humanize }}% of requests are returning {{ $labels.status }} on {{ $labels.host }}.
248248
This may indicate a bad deploy, expired credentials, or a scanner.
249249
250250
# No traffic gate — if a host goes silent we want to know regardless

0 commit comments

Comments
 (0)