mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
25 lines
429 B
JavaScript
25 lines
429 B
JavaScript
define([
|
|
'angular',
|
|
],
|
|
function (angular) {
|
|
'use strict';
|
|
|
|
var module = angular.module('grafana.controllers');
|
|
|
|
module.controller('AdminStatsCtrl', function($scope, backendSrv) {
|
|
|
|
$scope.init = function() {
|
|
$scope.getStats();
|
|
};
|
|
|
|
$scope.getStats = function() {
|
|
backendSrv.get('/api/admin/stats').then(function(stats) {
|
|
$scope.stats = stats;
|
|
});
|
|
};
|
|
|
|
$scope.init();
|
|
|
|
});
|
|
});
|