chore: reduce alerts noise

This commit is contained in:
vimtor
2026-05-16 00:07:59 +02:00
parent 0f31fd631b
commit 85cd447910
+2 -3
View File
@@ -73,7 +73,6 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => {
const providerHttpErrorsQuery = () => { const providerHttpErrorsQuery = () => {
const filters = [ const filters = [
{ column: "provider", op: "exists" }, { column: "provider", op: "exists" },
{ column: "status", op: "!=", value: "404" },
{ column: "user_agent", op: "contains", value: "opencode" }, { column: "user_agent", op: "contains", value: "opencode" },
] ]
const successHttpStatus = calculatedField({ const successHttpStatus = calculatedField({
@@ -101,11 +100,11 @@ const providerHttpErrorsQuery = () => {
name: "FAILED", name: "FAILED",
column: failedProviderHttpStatus.name, column: failedProviderHttpStatus.name,
filterCombination: "AND", filterCombination: "AND",
filters: [...filters, { column: "event_type", op: "=", value: "llm.error" }], filters: [...filters, { column: "event_type", op: "=", value: "llm.error" }, { column: "llm.error.code", op: "!=", value: "404" }],
}, },
], ],
formulas: [ formulas: [
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 100), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" }, { name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 200), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
], ],
timeRange: 900, timeRange: 900,
}).json }).json