Skip to content

Commit 9eb5047

Browse files
committed
Refactor NGFHigh5xxRate alert to improve host filtering logic
1 parent 00c2bd9 commit 9eb5047

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

kubernetes/namespaces/loki/alert_rules.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,21 @@ data:
192192
(
193193
sum by (host) (
194194
rate(
195-
{namespace="nginx-gateway", app_container="/nginx", host!~"forms-api.*"}
195+
{namespace="nginx-gateway", app_container="/nginx"}
196196
| json
197197
| __error__ = ""
198+
| host !~ "forms-api.*"
198199
| status >= 500
199200
[5m]
200201
)
201202
)
202203
/
203204
sum by (host) (
204205
rate(
205-
{namespace="nginx-gateway", app_container="/nginx", host!~"forms-api.*"}
206+
{namespace="nginx-gateway", app_container="/nginx"}
206207
| json
207208
| __error__ = ""
209+
| host !~ "forms-api.*"
208210
[5m]
209211
)
210212
)

0 commit comments

Comments
 (0)