File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"github.com/grafana/grafana/pkg/bus"
11
11
"github.com/grafana/grafana/pkg/log"
12
12
m "github.com/grafana/grafana/pkg/models"
13
+ "github.com/grafana/grafana/pkg/plugins"
13
14
"github.com/grafana/grafana/pkg/setting"
14
15
)
15
16
@@ -56,6 +57,9 @@ func sendUsageStats() {
56
57
metrics ["stats.users.count" ] = statsQuery .Result .UserCount
57
58
metrics ["stats.orgs.count" ] = statsQuery .Result .OrgCount
58
59
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 )
59
63
60
64
dsStats := m.GetDataSourceStatsQuery {}
61
65
if err := bus .Dispatch (& dsStats ); err != nil {
You can’t perform that action at this time.
0 commit comments