Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4c12703e
Commit
4c12703e
authored
Jan 24, 2016
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrated angularjs with go api
parent
da67afa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
public/app/features/admin/adminStatsCtrl.js
+4
-4
public/app/features/admin/partials/stats.html
+11
-11
No files found.
public/app/features/admin/adminStatsCtrl.js
View file @
4c12703e
...
@@ -6,16 +6,16 @@ function (angular) {
...
@@ -6,16 +6,16 @@ function (angular) {
var
module
=
angular
.
module
(
'grafana.controllers'
);
var
module
=
angular
.
module
(
'grafana.controllers'
);
module
.
controller
(
'AdminStatsCtrl'
,
function
(
$scope
)
{
module
.
controller
(
'AdminStatsCtrl'
,
function
(
$scope
,
backendSrv
)
{
$scope
.
init
=
function
()
{
$scope
.
init
=
function
()
{
$scope
.
getStats
();
$scope
.
getStats
();
};
};
$scope
.
getStats
=
function
()
{
$scope
.
getStats
=
function
()
{
//
backendSrv.get('/api/admin/stats').then(function(stats) {
backendSrv
.
get
(
'/api/admin/stats'
).
then
(
function
(
stats
)
{
//
$scope.stats = stats;
$scope
.
stats
=
stats
;
//
});
});
};
};
$scope
.
init
();
$scope
.
init
();
...
...
public/app/features/admin/partials/stats.html
View file @
4c12703e
...
@@ -17,35 +17,35 @@
...
@@ -17,35 +17,35 @@
<tbody>
<tbody>
<tr>
<tr>
<td>
Total dashboards
</td>
<td>
Total dashboards
</td>
<td>
213
</td>
<td>
{{stats.dashboard_count}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
Total users
</td>
<td>
Total users
</td>
<td>
97
</td>
<td>
{{stats.user_count}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
Total organizations
</td>
<td>
Total organizations
</td>
<td>
4
</td>
<td>
{{stats.org_count}}
</td>
</tr>
<tr>
<td>
Total datasources
</td>
<td>
{{stats.data_source_count}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
Total playlists
</td>
<td>
Total playlists
</td>
<td>
12
</td>
<td>
{{stats.playlist_count}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
Total snapshots
</td>
<td>
Total snapshots
</td>
<td>
64
</td>
<td>
{{stats.db_snapshot_count}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
Total dashboard tags
</td>
<td>
Total dashboard tags
</td>
<td>
15
</td>
<td>
{{stats.db_tag_count}}
</td>
</tr>
</tr>
<tr>
<tr>
<td>
Total starred dashboards
</td>
<td>
Total starred dashboards
</td>
<td>
131
</td>
<td>
{{stats.starred_db_count}}
</td>
</tr>
<tr>
<td>
Total panels
</td>
<td>
2739
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment