grafana/pkg/services/alerting/alerting.go

22 lines
279 B
Go
Raw Normal View History

package alerting
import (
"github.com/grafana/grafana/pkg/setting"
_ "github.com/grafana/grafana/pkg/tsdb/graphite"
)
var (
2016-06-13 07:54:06 -05:00
maxAlertExecutionRetries = 3
)
var engine *Engine
func Init() {
if !setting.AlertingEnabled {
return
}
engine = NewEngine()
engine.Start()
}