Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
92d6a31c
Commit
92d6a31c
authored
Jun 24, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metrics
parent
2cd6df07
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
controllers.js
src/main/webapp/public/scripts/controllers/controllers.js
+1
-1
services.js
src/main/webapp/public/scripts/services/services.js
+5
-0
metrics.html
src/main/webapp/public/views/apps/details/metrics.html
+4
-4
No files found.
src/main/webapp/public/scripts/controllers/controllers.js
View file @
92d6a31c
...
@@ -30,6 +30,6 @@ angular.module('springBootAdmin')
...
@@ -30,6 +30,6 @@ angular.module('springBootAdmin')
})
})
.
controller
(
'metricsCtrl'
,
function
(
$scope
,
$stateParams
,
Application
,
ApplicationDetails
)
{
.
controller
(
'metricsCtrl'
,
function
(
$scope
,
$stateParams
,
Application
,
ApplicationDetails
)
{
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
},
function
(
application
)
{
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
},
function
(
application
)
{
$scope
.
metrics
.
used
=
0
;
ApplicationDetails
.
getMetrics
(
application
);
});
});
});
});
src/main/webapp/public/scripts/services/services.js
View file @
92d6a31c
...
@@ -41,4 +41,9 @@ angular.module('springBootAdmin.services', ['ngResource'])
...
@@ -41,4 +41,9 @@ angular.module('springBootAdmin.services', ['ngResource'])
app
.
info
=
response
;
app
.
info
=
response
;
});
});
}
}
this
.
getMetrics
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/metrics'
).
success
(
function
(
response
)
{
app
.
metrics
=
response
;
});
}
}]);
}]);
src/main/webapp/public/views/apps/details/metrics.html
View file @
92d6a31c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<tr>
<tr>
<th>
Used Memory
</th>
<th>
Used Memory
</th>
<th>
Free Memory
</th>
<th>
Free Memory
</th>
<th></th>
<th>
Processors
</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td>
{{
metrics.used}}
</td>
<td>
{{
application.metrics['mem'] / 1024 | number:2 }} MB
</td>
<td>
{{
metrics.free}}
</td>
<td>
{{
application.metrics['mem.free'] / 1024 | number:2 }} MB
</td>
<td></td>
<td>
{{ application.metrics['processors'] }}
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
...
...
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