Usagestats: Add usage stats about what type of datasource is used in alerting. (#23125)

This commit is contained in:
Carl Bergquist
2020-04-02 08:45:04 +02:00
committed by GitHub
parent b017e437d8
commit 15bff3114f
11 changed files with 496 additions and 6 deletions
+2
View File
@@ -10,6 +10,7 @@ import (
tlog "github.com/opentracing/opentracing-go/log"
"github.com/benbjohnson/clock"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/registry"
"github.com/grafana/grafana/pkg/services/rendering"
@@ -23,6 +24,7 @@ import (
// are sent.
type AlertEngine struct {
RenderService rendering.Service `inject:""`
Bus bus.Bus `inject:""`
execQueue chan *Job
ticker *Ticker