grafana/pkg/services/alerting/alerting.go
2016-06-07 14:51:53 +02:00

29 lines
444 B
Go

package alerting
import (
"github.com/grafana/grafana/pkg/setting"
_ "github.com/grafana/grafana/pkg/tsdb/graphite"
)
var (
maxRetries = 3
)
var engine *Engine
func Init() {
if !setting.AlertingEnabled {
return
}
engine = NewEngine()
engine.Start()
// scheduler := NewScheduler()
// reader := NewRuleReader()
//
// go scheduler.dispatch(reader)
// go scheduler.executor(&ExecutorImpl{})
// go scheduler.handleResponses()
}