diff --git a/public/app/core/components/sidemenu/sidemenu.ts b/public/app/core/components/sidemenu/sidemenu.ts
index d2a640c1345..8f0c57bfade 100644
--- a/public/app/core/components/sidemenu/sidemenu.ts
+++ b/public/app/core/components/sidemenu/sidemenu.ts
@@ -107,6 +107,12 @@ export class SideMenuCtrl {
url: this.getUrl("/admin/settings"),
});
+ this.mainLinks.push({
+ text: "Grafana stats",
+ icon: "fa fa-fw fa-bar-chart",
+ url: this.getUrl("/admin/stats"),
+ });
+
this.mainLinks.push({
text: "Global Users",
icon: "fa fa-fw fa-user",
@@ -118,6 +124,7 @@ export class SideMenuCtrl {
icon: "fa fa-fw fa-users",
url: this.getUrl("/admin/orgs"),
});
+
}
updateMenu() {
diff --git a/public/app/core/routes/all.js b/public/app/core/routes/all.js
index cc4d73ef708..bc71a63a094 100644
--- a/public/app/core/routes/all.js
+++ b/public/app/core/routes/all.js
@@ -112,6 +112,10 @@ define([
templateUrl: 'app/features/admin/partials/edit_org.html',
controller : 'AdminEditOrgCtrl',
})
+ .when('/admin/stats', {
+ templateUrl: 'app/features/admin/partials/stats.html',
+ controller : 'AdminStatsCtrl',
+ })
.when('/login', {
templateUrl: 'app/partials/login.html',
controller : 'LoginCtrl',
diff --git a/public/app/features/admin/adminStatsCtrl.js b/public/app/features/admin/adminStatsCtrl.js
new file mode 100644
index 00000000000..94b40b59591
--- /dev/null
+++ b/public/app/features/admin/adminStatsCtrl.js
@@ -0,0 +1,24 @@
+define([
+ 'angular',
+],
+function (angular) {
+ 'use strict';
+
+ var module = angular.module('grafana.controllers');
+
+ module.controller('AdminStatsCtrl', function($scope) {
+
+ $scope.init = function() {
+ $scope.getStats();
+ };
+
+ $scope.getStats = function() {
+// backendSrv.get('/api/admin/stats').then(function(stats) {
+// $scope.stats = stats;
+// });
+ };
+
+ $scope.init();
+
+ });
+});
diff --git a/public/app/features/admin/all.js b/public/app/features/admin/all.js
index 14bff249b0e..786210f064f 100644
--- a/public/app/features/admin/all.js
+++ b/public/app/features/admin/all.js
@@ -4,4 +4,5 @@ define([
'./adminEditOrgCtrl',
'./adminEditUserCtrl',
'./adminSettingsCtrl',
+ './adminStatsCtrl',
], function () {});
diff --git a/public/app/features/admin/partials/stats.html b/public/app/features/admin/partials/stats.html
new file mode 100644
index 00000000000..048be83c83e
--- /dev/null
+++ b/public/app/features/admin/partials/stats.html
@@ -0,0 +1,53 @@
+
| Name | +Value | +
|---|---|
| Total dashboards | +213 | +
| Total users | +97 | +
| Total organizations | +4 | +
| Total playlists | +12 | +
| Total snapshots | +64 | +
| Total dashboard tags | +15 | +
| Total starred dashboards | +131 | +
| Total panels | +2739 | +