Commit 75311e06 by Torkel Ödegaard

feat(alerting): removed old init package

parent 5f5bbfbd
package init
import (
"context"
"github.com/grafana/grafana/pkg/services/alerting"
_ "github.com/grafana/grafana/pkg/services/alerting/conditions"
_ "github.com/grafana/grafana/pkg/services/alerting/notifiers"
"github.com/grafana/grafana/pkg/setting"
_ "github.com/grafana/grafana/pkg/tsdb/graphite"
_ "github.com/grafana/grafana/pkg/tsdb/prometheus"
_ "github.com/grafana/grafana/pkg/tsdb/testdata"
)
func Init(ctx context.Context) error {
if !setting.AlertingEnabled {
return nil
}
engine = alerting.NewEngine()
return engine.Start(ctx)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment