feat(playlist): add usage statisics

This commit is contained in:
bergquist
2016-01-25 21:39:45 +01:00
parent 5f1fe13530
commit 52403ca17e
3 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -1,6 +1,8 @@
package sqlstore
import (
"fmt"
"github.com/grafana/grafana/pkg/bus"
m "github.com/grafana/grafana/pkg/models"
)
@@ -34,7 +36,11 @@ func GetSystemStats(query *m.GetSystemStatsQuery) error {
(
SELECT COUNT(*)
FROM ` + dialect.Quote("dashboard") + `
) AS dashboard_count
) AS dashboard_count,
(
SELECT COUNT(*)
FROM ` + dialect.Quote("playlist") + `
) AS playlist_count
`
var stats m.SystemStats