chore: reduce alerts threshold

This commit is contained in:
vimtor
2026-05-08 12:06:39 +02:00
parent edbc02855d
commit 15784aa036
+8 -8
View File
@@ -45,7 +45,7 @@ const modelHttpErrorsQuery = (product: "go" | "zen") => {
{ op: "COUNT", name: "TOTAL", filterCombination: "AND", filters }, { op: "COUNT", name: "TOTAL", filterCombination: "AND", filters },
{ op: "SUM", name: "FAILED", column: "is_failed_http_status", filterCombination: "AND", filters }, { op: "SUM", name: "FAILED", column: "is_failed_http_status", filterCombination: "AND", filters },
], ],
formulas: [{ name: "ERROR", expression: "IF(GTE($TOTAL, 500), DIV($FAILED, $TOTAL), 0)" }], formulas: [{ name: "ERROR", expression: "IF(GTE($TOTAL, 100), DIV($FAILED, $TOTAL), 0)" }],
timeRange: 900, timeRange: 900,
}).json }).json
} }
@@ -86,9 +86,9 @@ const providerHttpErrorsQuery = (product: "go" | "zen") => {
}, },
], ],
formulas: [ formulas: [
{ name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 250), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" }, { name: "ERROR", expression: "IF(GTE(SUM($SUCCESS, $FAILED), 50), DIV($FAILED, SUM($SUCCESS, $FAILED)), 0)" },
], ],
timeRange: 1800, timeRange: 900,
}).json }).json
} }
@@ -100,7 +100,7 @@ new honeycomb.Trigger("IncreasedModelHttpErrorsGo", {
queryJson: modelHttpErrorsQuery("go"), queryJson: modelHttpErrorsQuery("go"),
alertType: "on_change", alertType: "on_change",
frequency: 300, frequency: 300,
thresholds: [{ op: ">=", value: 0.9, exceededLimit: 1 }], thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }],
recipients: [ recipients: [
{ {
id: webhookRecipient.id, id: webhookRecipient.id,
@@ -119,7 +119,7 @@ new honeycomb.Trigger("IncreasedModelHttpErrorsZen", {
queryJson: modelHttpErrorsQuery("zen"), queryJson: modelHttpErrorsQuery("zen"),
alertType: "on_change", alertType: "on_change",
frequency: 300, frequency: 300,
thresholds: [{ op: ">=", value: 0.9, exceededLimit: 1 }], thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }],
recipients: [ recipients: [
{ {
id: webhookRecipient.id, id: webhookRecipient.id,
@@ -138,7 +138,7 @@ new honeycomb.Trigger("IncreasedProviderHttpErrorsGo", {
queryJson: providerHttpErrorsQuery("go"), queryJson: providerHttpErrorsQuery("go"),
alertType: "on_change", alertType: "on_change",
frequency: 600, frequency: 600,
thresholds: [{ op: ">=", value: 0.9, exceededLimit: 1 }], thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }],
recipients: [ recipients: [
{ {
id: webhookRecipient.id, id: webhookRecipient.id,
@@ -157,7 +157,7 @@ new honeycomb.Trigger("IncreasedProviderHttpErrorsZen", {
queryJson: providerHttpErrorsQuery("zen"), queryJson: providerHttpErrorsQuery("zen"),
alertType: "on_change", alertType: "on_change",
frequency: 600, frequency: 600,
thresholds: [{ op: ">=", value: 0.9, exceededLimit: 1 }], thresholds: [{ op: ">=", value: 0.7, exceededLimit: 1 }],
recipients: [ recipients: [
{ {
id: webhookRecipient.id, id: webhookRecipient.id,
@@ -184,7 +184,7 @@ new honeycomb.Trigger("IncreasedFreeTierRequests", {
}).json, }).json,
alertType: "on_change", alertType: "on_change",
frequency: 900, frequency: 900,
thresholds: [{ op: ">=", value: 60, exceededLimit: 1 }], thresholds: [{ op: ">=", value: 50, exceededLimit: 1 }],
baselineDetails: [{ type: "percentage", offsetMinutes: 1440 }], baselineDetails: [{ type: "percentage", offsetMinutes: 1440 }],
recipients: [ recipients: [
{ {