Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: resolves issue for migrated promql (#1481)

Amol Umbark8bdc41bef08d
diff --git a/frontend/src/container/FormAlertRules/RuleOptions.tsx b/frontend/src/container/FormAlertRules/RuleOptions.tsx
index 8794f87b2c..968ce695e3 100644
--- a/frontend/src/container/FormAlertRules/RuleOptions.tsx
+++ b/frontend/src/container/FormAlertRules/RuleOptions.tsx
@@ -156,6 +156,8 @@ function RuleOptions({
...alertDef,
condition: {
...alertDef.condition,
+ op: alertDef.condition?.op || defaultCompareOp,
+ matchType: alertDef.condition?.matchType || defaultMatchType,
target: value as number,
},
});