Skip to content

Commit 85cd447

Browse files
committed
chore: reduce alerts noise
1 parent 0f31fd6 commit 85cd447

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

infra/monitoring.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => {
7373
const providerHttpErrorsQuery = () => {
7474
const filters = [
7575
{ column: "provider", op: "exists" },
76-
{ column: "status", op: "!=", value: "404" },
7776
{ column: "user_agent", op: "contains", value: "opencode" },
7877
]
7978
const successHttpStatus = calculatedField({
@@ -101,11 +100,11 @@ const providerHttpErrorsQuery = () => {
101100
name: "FAILED",
102101
column: failedProviderHttpStatus.name,
103102
filterCombination: "AND",
104-
filters: [...filters, { column: "event_type", op: "=", value: "llm.error" }],
103+
filters: [...filters, { column: "event_type", op: "=", value: "llm.error" }, { column: "llm.error.code", op: "!=", value: "404" }],
105104
},
106105
],
107106
formulas: [
108-
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 100), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
107+
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 200), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
109108
],
110109
timeRange: 900,
111110
}).json

0 commit comments

Comments
 (0)