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: use inactive for empty alert state (#5902)

Srikanth Chekuric6ba2b4598d5
diff --git a/pkg/query-service/model/alerting.go b/pkg/query-service/model/alerting.go
index c065fdfae6..4d54f6ae34 100644
--- a/pkg/query-service/model/alerting.go
+++ b/pkg/query-service/model/alerting.go
@@ -57,7 +57,7 @@ func (s *AlertState) UnmarshalJSON(b []byte) error {
case "disabled":
*s = StateDisabled
default:
- return errors.New("invalid alert state")
+ *s = StateInactive
}
return nil
default: