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.

chore: threshold rule panel type to graph (#5284)

Srikanth Chekurifaa1728b8c90
diff --git a/pkg/query-service/rules/thresholdRule.go b/pkg/query-service/rules/thresholdRule.go
index 2af4ce647f..051476e6b8 100644
--- a/pkg/query-service/rules/thresholdRule.go
+++ b/pkg/query-service/rules/thresholdRule.go
@@ -484,6 +484,10 @@ func (r *ThresholdRule) prepareQueryRange(ts time.Time) *v3.QueryRangeParamsV3 {
}
}
+ if r.ruleCondition.CompositeQuery.PanelType != v3.PanelTypeGraph {
+ r.ruleCondition.CompositeQuery.PanelType = v3.PanelTypeGraph
+ }
+
// default mode
return &v3.QueryRangeParamsV3{
Start: start,