chore: reduce alerts noise
This commit is contained in:
+2
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user