Ver Fonte

chore: reduce alerts noise

vimtor há 3 meses atrás
pai
commit
85cd447910
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      infra/monitoring.ts

+ 2 - 3
infra/monitoring.ts

@@ -73,7 +73,6 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => {
 const providerHttpErrorsQuery = () => {
   const filters = [
     { column: "provider", op: "exists" },
-    { column: "status", op: "!=", value: "404" },
     { column: "user_agent", op: "contains", value: "opencode" },
   ]
   const successHttpStatus = calculatedField({
@@ -101,11 +100,11 @@ const providerHttpErrorsQuery = () => {
         name: "FAILED",
         column: failedProviderHttpStatus.name,
         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: [
-      { 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,
   }).json