feat(alerting): lots of progress on notifications, refactored them out to their own package, restored webhook notitication and added slack notification

This commit is contained in:
Torkel Ödegaard
2016-07-27 12:09:55 +02:00
parent 77c66a88d9
commit ae5f8a76d9
16 changed files with 416 additions and 116 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/grafana/grafana/pkg/login"
"github.com/grafana/grafana/pkg/metrics"
"github.com/grafana/grafana/pkg/plugins"
"github.com/grafana/grafana/pkg/services/alerting"
alertingInit "github.com/grafana/grafana/pkg/services/alerting/init"
"github.com/grafana/grafana/pkg/services/eventpublisher"
"github.com/grafana/grafana/pkg/services/notifications"
"github.com/grafana/grafana/pkg/services/search"
@@ -68,7 +68,7 @@ func main() {
social.NewOAuthService()
eventpublisher.Init()
plugins.Init()
alerting.Init()
alertingInit.Init()
if err := notifications.Init(); err != nil {
log.Fatal(3, "Notification service failed to initialize", err)