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
aa9b715e
Commit
aa9b715e
authored
Jun 24, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
env
parent
92d6a31c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
7 deletions
+20
-7
app.js
src/main/webapp/public/scripts/app.js
+5
-0
controllers.js
src/main/webapp/public/scripts/controllers/controllers.js
+5
-0
services.js
src/main/webapp/public/scripts/services/services.js
+9
-1
details.html
src/main/webapp/public/views/apps/details.html
+1
-0
metrics.html
src/main/webapp/public/views/apps/details/metrics.html
+0
-6
No files found.
src/main/webapp/public/scripts/app.js
View file @
aa9b715e
...
...
@@ -40,6 +40,11 @@ angular.module('springBootAdmin', [
url
:
'/metrics'
,
templateUrl
:
'views/apps/details/metrics.html'
,
controller
:
'metricsCtrl'
})
.
state
(
'apps.details.env'
,
{
url
:
'/env'
,
templateUrl
:
'views/apps/details/env.html'
,
controller
:
'envCtrl'
});
})
.
run
(
function
(
$rootScope
,
$state
,
$stateParams
,
$log
)
{
...
...
src/main/webapp/public/scripts/controllers/controllers.js
View file @
aa9b715e
...
...
@@ -32,4 +32,9 @@ angular.module('springBootAdmin')
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
},
function
(
application
)
{
ApplicationDetails
.
getMetrics
(
application
);
});
})
.
controller
(
'envCtrl'
,
function
(
$scope
,
$stateParams
,
Application
,
ApplicationDetails
)
{
$scope
.
application
=
Application
.
query
({
id
:
$stateParams
.
id
},
function
(
application
)
{
ApplicationDetails
.
getEnv
(
application
);
});
});
src/main/webapp/public/scripts/services/services.js
View file @
aa9b715e
...
...
@@ -38,7 +38,7 @@ angular.module('springBootAdmin.services', ['ngResource'])
.
service
(
'ApplicationDetails'
,
[
'$http'
,
function
(
$http
)
{
this
.
getInfo
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/info'
).
success
(
function
(
response
)
{
app
.
info
=
response
;
app
.
info
=
angular
.
toJson
(
response
,
true
)
;
});
}
this
.
getMetrics
=
function
(
app
)
{
...
...
@@ -46,4 +46,12 @@ angular.module('springBootAdmin.services', ['ngResource'])
app
.
metrics
=
response
;
});
}
this
.
getEnv
=
function
(
app
)
{
return
$http
.
get
(
app
.
url
+
'/env'
).
success
(
function
(
response
)
{
app
.
env
=
response
;
app
.
env
.
systemProp
=
angular
.
toJson
(
app
.
env
[
'systemProperties'
],
true
);
app
.
env
.
systemEnv
=
angular
.
toJson
(
app
.
env
[
'systemEnvironment'
],
true
);
//app.env.config = response['applicationConfig: [classpath:/application.properties]'];
});
}
}]);
src/main/webapp/public/views/apps/details.html
View file @
aa9b715e
...
...
@@ -10,6 +10,7 @@
<ul
class=
"nav nav-tabs"
>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.infos({id: application.id})"
>
Infos
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.metrics({id: application.id})"
>
Metrics
</a></li>
<li
ui-sref-active=
"active"
><a
ui-sref=
"apps.details.env({id: application.id})"
>
Environment
</a></li>
</ul>
<div
class=
"tab-content"
>
<div
ui-view
></div>
...
...
src/main/webapp/public/views/apps/details/metrics.html
View file @
aa9b715e
...
...
@@ -4,9 +4,6 @@
<th>
Used Memory
</th>
<th>
Free Memory
</th>
<th>
Processors
</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
...
...
@@ -14,9 +11,6 @@
<td>
{{ application.metrics['mem'] / 1024 | number:2 }} MB
</td>
<td>
{{ application.metrics['mem.free'] / 1024 | number:2 }} MB
</td>
<td>
{{ application.metrics['processors'] }}
</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</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