diff --git a/pkg/services/sqlstore/stats.go b/pkg/services/sqlstore/stats.go index 0465c6999a9..fbd22ac0f5c 100644 --- a/pkg/services/sqlstore/stats.go +++ b/pkg/services/sqlstore/stats.go @@ -71,7 +71,7 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error { FROM ` + dialect.Quote("dashboard_snapshot") + ` ) AS db_snapshot_count, ( - SELECT COUNT(*) + SELECT COUNT( DISTINCT ( ` + dialect.Quote("term") + ` )) FROM ` + dialect.Quote("dashboard_tag") + ` ) AS db_tag_count, (