Skip to content

Commit 8047f90

Browse files
committed
stats(): updated stats
1 parent 788a015 commit 8047f90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/metrics/report_usage.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/grafana/grafana/pkg/bus"
1111
"github.com/grafana/grafana/pkg/log"
1212
m "github.com/grafana/grafana/pkg/models"
13+
"github.com/grafana/grafana/pkg/plugins"
1314
"github.com/grafana/grafana/pkg/setting"
1415
)
1516

@@ -56,6 +57,9 @@ func sendUsageStats() {
5657
metrics["stats.users.count"] = statsQuery.Result.UserCount
5758
metrics["stats.orgs.count"] = statsQuery.Result.OrgCount
5859
metrics["stats.playlist.count"] = statsQuery.Result.PlaylistCount
60+
metrics["stats.plugins.apps.count"] = len(plugins.Apps)
61+
metrics["stats.plugins.panels.count"] = len(plugins.Panels)
62+
metrics["stats.plugins.datasources.count"] = len(plugins.DataSources)
5963

6064
dsStats := m.GetDataSourceStatsQuery{}
6165
if err := bus.Dispatch(&dsStats); err != nil {

0 commit comments

Comments
 (0)