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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: enforce minimum step interval for v3 promql queries (#11293)
Tushar Vatsb860cce31d5f
diff --git a/pkg/query-service/app/parser.go b/pkg/query-service/app/parser.goindex 9eb17fdbc5..f23a5aa1f5 100644--- a/pkg/query-service/app/parser.go+++ b/pkg/query-service/app/parser.go@@ -769,6 +769,13 @@ func ParseQueryRangeParams(r *http.Request) (*v3.QueryRangeParamsV3, *model.ApiEreturn nil, &model.ApiError{Typ: model.ErrorBadData, Err: err}}+ // Clamp the top-level Step for PromQL+ if queryRangeParams.CompositeQuery.QueryType == v3.QueryTypePromQL {+ if minStep := common.MinAllowedStepInterval(queryRangeParams.Start, queryRangeParams.End); queryRangeParams.Step < minStep {+ queryRangeParams.Step = minStep+ }+ }+// prepare the variables for the corresponding query typeformattedVars := make(map[string]interface{})for name, value := range queryRangeParams.Variables {