feat(alerting): add global usage metrics for alerting

closes #5786
This commit is contained in:
bergquist
2016-08-11 21:12:46 +02:00
parent ae15de119f
commit 937726499f
8 changed files with 66 additions and 24 deletions
+2
View File
@@ -6,6 +6,7 @@ import (
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/metrics"
m "github.com/grafana/grafana/pkg/models"
)
@@ -58,6 +59,7 @@ func (arr *DefaultRuleReader) Fetch() []*Rule {
}
}
metrics.M_Alerting_Active_Alerts.Inc(int64(len(res)))
return res
}