stats: send amount of stars as stats

This commit is contained in:
bergquist
2018-01-23 22:51:05 +01:00
parent ea988a37dd
commit ee973a977b
3 changed files with 63 additions and 58 deletions
+1
View File
@@ -379,6 +379,7 @@ func sendUsageStats() {
metrics["stats.alerts.count"] = statsQuery.Result.Alerts
metrics["stats.active_users.count"] = statsQuery.Result.ActiveUsers
metrics["stats.datasources.count"] = statsQuery.Result.Datasources
metrics["stats.stars.count"] = statsQuery.Result.Stars
dsStats := models.GetDataSourceStatsQuery{}
if err := bus.Dispatch(&dsStats); err != nil {