From 36f8b7e47da389696b386bb39c19ebe47ae5cc9e Mon Sep 17 00:00:00 2001 From: vimtor Date: Fri, 8 May 2026 23:17:55 +0200 Subject: [PATCH] chore: reduce alerts false positives --- infra/monitoring.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/monitoring.ts b/infra/monitoring.ts index aa0624c619..d06d536c78 100644 --- a/infra/monitoring.ts +++ b/infra/monitoring.ts @@ -38,7 +38,9 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => { calculatedFields: [ { name: "is_failed_http_status", - expression: `IF(AND(GTE($status, "400"), NOT(EQUALS($status, "401"))), 1, 0)`, + expression: product === "go" + ? `IF(AND(GTE($status, "400"), NOT(EQUALS($status, "401")), NOT(EQUALS($status, "429"))), 1, 0)` + : `IF(AND(GTE($status, "400"), NOT(EQUALS($status, "401"))), 1, 0)`, }, ], calculations: [ @@ -66,7 +68,7 @@ const providerHttpErrorsQuery = (product: "go" | "zen") => { }, { name: "is_failed_provider_http_status", - expression: `IF(GTE($llm.error.code, "400"), 1, 0)`, + expression: `IF(GT($llm.error.code, "400"), 1, 0)`, }, ], calculations: [