diff --git a/pkg/services/ngalert/schedule/jitter.go b/pkg/services/ngalert/schedule/jitter.go index 127272c950a..0db59e567ee 100644 --- a/pkg/services/ngalert/schedule/jitter.go +++ b/pkg/services/ngalert/schedule/jitter.go @@ -21,6 +21,9 @@ const ( // JitterStrategyFrom returns the JitterStrategy indicated by the current Grafana feature toggles. func JitterStrategyFrom(toggles featuremgmt.FeatureToggles) JitterStrategy { strategy := JitterNever + if toggles == nil { + return strategy + } if toggles.IsEnabledGlobally(featuremgmt.FlagJitterAlertRules) { strategy = JitterByGroup }