File tree Expand file tree Collapse file tree 4 files changed +12
-22
lines changed
public/app/features/admin/partials Expand file tree Collapse file tree 4 files changed +12
-22
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- deb_ver=3.0.0-beta21459801392
4
- rpm_ver=3.0.0-beta21459801392
3
+ deb_ver=3.0.0-beta31460381868
4
+ rpm_ver=3.0.0-beta31460381868
5
5
6
6
# rpm_ver=3.0.0-1
7
7
@@ -15,7 +15,7 @@ rpm_ver=3.0.0-beta21459801392
15
15
16
16
# wget https://grafanarel.s3.amazonaws.com/builds/grafana-${rpm_ver}.x86_64.rpm
17
17
18
- package_cloud push grafana/testing/el/6 grafana-${rpm_ver} .x86_64.rpm
18
+ # package_cloud push grafana/testing/el/6 grafana-${rpm_ver}.x86_64.rpm
19
19
# package_cloud push grafana/testing/el/7 grafana-${rpm_ver}.x86_64.rpm
20
20
21
21
# package_cloud push grafana/stable/el/7 grafana-${version}-1.x86_64.rpm
Original file line number Diff line number Diff line change @@ -21,15 +21,14 @@ type GetDataSourceStatsQuery struct {
21
21
}
22
22
23
23
type AdminStats struct {
24
- UserCount int `json:"user_count"`
25
- OrgCount int `json:"org_count"`
26
- DashboardCount int `json:"dashboard_count"`
27
- DbSnapshotCount int `json:"db_snapshot_count"`
28
- DbTagCount int `json:"db_tag_count"`
29
- DataSourceCount int `json:"data_source_count"`
30
- PlaylistCount int `json:"playlist_count"`
31
- StarredDbCount int `json:"starred_db_count"`
32
- GrafanaAdminCount int `json:"grafana_admin_count"`
24
+ UserCount int `json:"user_count"`
25
+ OrgCount int `json:"org_count"`
26
+ DashboardCount int `json:"dashboard_count"`
27
+ DbSnapshotCount int `json:"db_snapshot_count"`
28
+ DbTagCount int `json:"db_tag_count"`
29
+ DataSourceCount int `json:"data_source_count"`
30
+ PlaylistCount int `json:"playlist_count"`
31
+ StarredDbCount int `json:"starred_db_count"`
33
32
}
34
33
35
34
type GetAdminStatsQuery struct {
Original file line number Diff line number Diff line change @@ -85,12 +85,7 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error {
85
85
(
86
86
SELECT COUNT(DISTINCT ` + dialect .Quote ("dashboard_id" ) + ` )
87
87
FROM ` + dialect .Quote ("star" ) + `
88
- ) AS starred_db_count,
89
- (
90
- SELECT COUNT(*)
91
- FROM ` + dialect .Quote ("user" ) + `
92
- WHERE ` + dialect .Quote ("is_admin" ) + ` = 1
93
- ) AS grafana_admin_count
88
+ ) AS starred_db_count
94
89
`
95
90
96
91
var stats m.AdminStats
Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ <h1>Stats</h1>
22
22
< td > Total users</ td >
23
23
< td > {{ctrl.stats.user_count}}</ td >
24
24
</ tr >
25
- < tr >
26
- < td > Total grafana admins</ td >
27
- < td > {{ctrl.stats.grafana_admin_count}}</ td >
28
- </ tr >
29
25
< tr >
30
26
< td > Total organizations</ td >
31
27
< td > {{ctrl.stats.org_count}}</ td >
You can’t perform that action at this time.
0 commit comments