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
a8355c92
Commit
a8355c92
authored
May 12, 2017
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide the information from details when the metrics can't be fetched
parent
b9b97677
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
50 deletions
+62
-50
detailsCtrl.js
...i/modules/applications-details/controllers/detailsCtrl.js
+3
-3
details.html
...server-ui/modules/applications-details/views/details.html
+59
-47
No files found.
spring-boot-admin-server-ui/modules/applications-details/controllers/detailsCtrl.js
View file @
a8355c92
...
...
@@ -21,7 +21,7 @@ module.exports = function ($scope, application, $interval) {
'ngInject'
;
$scope
.
application
=
application
;
$scope
.
metrics
=
{}
;
$scope
.
metrics
=
null
;
$scope
.
refreshInterval
=
1
;
$scope
.
refresher
=
null
;
...
...
@@ -52,8 +52,8 @@ module.exports = function ($scope, application, $interval) {
}
});
}
).
catch
(
function
(
response
)
{
$scope
.
error
=
response
.
data
;
).
catch
(
function
()
{
$scope
.
metrics
=
null
;
});
};
...
...
spring-boot-admin-server-ui/modules/applications-details/views/details.html
View file @
a8355c92
<div
class=
"container"
ui-view
>
<div
class=
"alert alert-error"
ng-if=
"error"
>
<b>
Error:
</b>
{{ error }}
</div>
<form
class=
"form-inline"
>
<button
title=
"refresh"
class=
"btn"
ng-click=
"refresh()"
><i
class=
"fa fa-repeat"
></i></button>
<div
class=
"input-prepend input-append"
>
<button
title=
"auto refresh"
class=
"btn"
ng-click=
"toggleAutoRefresh()"
ng-class=
"{'active':refresher != null}"
>
<i
class=
"fa fa-refresh"
ng-class=
"{'fa-spin':refresher != null}"
></i>
</button>
<input
class=
"input-mini"
type=
"number"
min=
"1"
ng-model=
"refreshInterval"
ng-disabled=
"refresher != null"
/>
<span
class=
"add-on"
>
sec
</span>
</div>
</form>
<div
style=
"display: flex; flex-wrap: wrap; justify-content: space-around;"
>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Application"
raw=
"api/applications/{{ application.id }}/info"
>
<table
class=
"table"
>
<tr
ng-repeat=
"(key, value) in info"
>
<td
ng-bind=
"key"
></td>
<td
style=
"white-space: pre; padding: 8px 0 8px 8px; max-width: 400px; overflow-x: auto;"
ng-bind-html=
"value | yaml | linkify:50"
></td>
</tr>
</table>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Health"
raw=
"api/applications/{{ application.id }}/health"
>
<sba-health-status
health=
"health"
></sba-health-status>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Memory"
raw=
"api/applications/{{ application.id }}/metrics/mem.*%7Cheap.*"
>
<sba-memory-stats
metrics=
metrics
></sba-memory-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"JVM"
raw=
"api/applications/{{ application.id }}/metrics/systemload.*%7Cclasses.*%7Cuptime%7Cprocessors%7Cthreads.*"
>
<sba-jvm-stats
metrics=
"metrics"
></sba-jvm-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Garbage Collection"
raw=
"api/applications/{{ application.id }}/metrics/gc.*"
>
<sba-gc-stats
metrics=
"metrics"
></sba-gc-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Servlet Container"
raw=
"api/applications/{{ application.id }}/metrics/httpsessions.*"
ng-show=
"metrics['httpsessions.active'] != null"
>
<sba-servlet-container-stats
metrics=
"metrics"
></sba-servlet-container-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Datasources"
raw=
"api/applications/{{ application.id }}/metrics/datasource.*"
ng-show=
"hasDatasources"
>
<sba-datasource-stats
metrics=
"metrics"
></sba-datasource-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Caches"
raw=
"api/applications/{{ application.id }}/metrics/cache.*"
ng-show=
"hasCaches"
>
<sba-cache-stats
metrics=
"metrics"
></sba-cache-stats>
</sba-info-panel>
</div>
<div
class=
"alert alert-error"
ng-if=
"error"
>
<b>
Error:
</b>
{{ error }}
</div>
<form
class=
"form-inline"
>
<button
title=
"refresh"
class=
"btn"
ng-click=
"refresh()"
><i
class=
"fa fa-repeat"
></i></button>
<div
class=
"input-prepend input-append"
>
<button
title=
"auto refresh"
class=
"btn"
ng-click=
"toggleAutoRefresh()"
ng-class=
"{'active':refresher != null}"
>
<i
class=
"fa fa-refresh"
ng-class=
"{'fa-spin':refresher != null}"
></i>
</button>
<input
class=
"input-mini"
type=
"number"
min=
"1"
ng-model=
"refreshInterval"
ng-disabled=
"refresher != null"
/>
<span
class=
"add-on"
>
sec
</span>
</div>
</form>
<div
style=
"display: flex; flex-wrap: wrap; justify-content: space-around;"
>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Application"
raw=
"api/applications/{{ application.id }}/info"
>
<table
class=
"table"
>
<tr
ng-repeat=
"(key, value) in info"
>
<td
ng-bind=
"key"
></td>
<td
style=
"white-space: pre; padding: 8px 0 8px 8px; max-width: 400px; overflow-x: auto;"
ng-bind-html=
"value | yaml | linkify:50"
></td>
</tr>
</table>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Health"
raw=
"api/applications/{{ application.id }}/health"
>
<sba-health-status
health=
"health"
></sba-health-status>
</sba-info-panel>
<sba-info-panel
ng-if-start=
"metrics"
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Memory"
raw=
"api/applications/{{ application.id }}/metrics/mem.*%7Cheap.*"
>
<sba-memory-stats
metrics=
metrics
></sba-memory-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"JVM"
raw=
"api/applications/{{ application.id }}/metrics/systemload.*%7Cclasses.*%7Cuptime%7Cprocessors%7Cthreads.*"
>
<sba-jvm-stats
metrics=
"metrics"
></sba-jvm-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Garbage Collection"
raw=
"api/applications/{{ application.id }}/metrics/gc.*"
>
<sba-gc-stats
metrics=
"metrics"
></sba-gc-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Servlet Container"
raw=
"api/applications/{{ application.id }}/metrics/httpsessions.*"
ng-show=
"metrics['httpsessions.active'] != null"
>
<sba-servlet-container-stats
metrics=
"metrics"
></sba-servlet-container-stats>
</sba-info-panel>
<sba-info-panel
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Datasources"
raw=
"api/applications/{{ application.id }}/metrics/datasource.*"
ng-show=
"hasDatasources"
>
<sba-datasource-stats
metrics=
"metrics"
></sba-datasource-stats>
</sba-info-panel>
<sba-info-panel
ng-if-end
class=
"span6"
style=
"margin-left:0px"
panel-title=
"Caches"
raw=
"api/applications/{{ application.id }}/metrics/cache.*"
ng-show=
"hasCaches"
>
<sba-cache-stats
metrics=
"metrics"
></sba-cache-stats>
</sba-info-panel>
</div>
</div>
\ No newline at end of file
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