├── src ├── main │ ├── webapp │ │ └── public │ │ │ ├── views │ │ │ ├── apps.html │ │ │ ├── about.html │ │ │ └── apps │ │ │ │ ├── details │ │ │ │ ├── infos.html │ │ │ │ ├── env.html │ │ │ │ ├── props.html │ │ │ │ └── metrics.html │ │ │ │ ├── logging │ │ │ │ ├── read.html │ │ │ │ └── write.html │ │ │ │ ├── logging.html │ │ │ │ ├── details.html │ │ │ │ └── overview.html │ │ │ ├── img │ │ │ ├── favicon.png │ │ │ ├── yeoman.png │ │ │ ├── spring-logo.png │ │ │ └── platform-spring-boot.png │ │ │ ├── styles │ │ │ ├── application.css │ │ │ ├── typography.css │ │ │ ├── main.css │ │ │ ├── buttons.css │ │ │ ├── fontcustom.css │ │ │ ├── highlight.css │ │ │ ├── icons.css │ │ │ └── base.css │ │ │ ├── scripts │ │ │ ├── filters │ │ │ │ └── filters.js │ │ │ ├── app.js │ │ │ ├── controllers │ │ │ │ └── controllers.js │ │ │ └── services │ │ │ │ └── services.js │ │ │ └── index.html │ ├── resources │ │ └── application.properties │ └── java │ │ └── de │ │ └── codecentric │ │ └── boot │ │ └── admin │ │ ├── SpringBootAdmin.java │ │ ├── config │ │ └── WebappConfig.java │ │ ├── controller │ │ └── RegistryController.java │ │ └── service │ │ └── ApplicationRegistry.java └── test │ ├── resources │ └── logback-test.xml │ └── java │ └── de │ └── codecentric │ └── boot │ └── admin │ └── service │ └── ApplicationRegistryTest.java ├── .gitignore ├── screenshot.png ├── README.md ├── pom.xml └── LICENSE.TXT /src/main/webapp/public/views/apps.html: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /.settings 3 | /.classpath 4 | /.project 5 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dickerpulli/spring-boot-admin/HEAD/screenshot.png -------------------------------------------------------------------------------- /src/main/webapp/public/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dickerpulli/spring-boot-admin/HEAD/src/main/webapp/public/img/favicon.png -------------------------------------------------------------------------------- /src/main/webapp/public/img/yeoman.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dickerpulli/spring-boot-admin/HEAD/src/main/webapp/public/img/yeoman.png -------------------------------------------------------------------------------- /src/main/webapp/public/img/spring-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dickerpulli/spring-boot-admin/HEAD/src/main/webapp/public/img/spring-logo.png -------------------------------------------------------------------------------- /src/main/webapp/public/img/platform-spring-boot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dickerpulli/spring-boot-admin/HEAD/src/main/webapp/public/img/platform-spring-boot.png -------------------------------------------------------------------------------- /src/main/webapp/public/styles/application.css: -------------------------------------------------------------------------------- 1 | #authentication { 2 | line-height: 20px; 3 | padding: 10px 0; 4 | } 5 | 6 | ul.download-links { 7 | list-style-type: none; 8 | margin-left: 0; 9 | } 10 | -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.resources.cachePeriod=3600 2 | server.port=8080 3 | info.id=@pom.artifactId@ 4 | info.version=@pom.version@ 5 | spring.boot.admin.url=http://localhost:8080 6 | logging.file=/tmp/log.log -------------------------------------------------------------------------------- /src/test/resources/logback-test.xml: -------------------------------------------------------------------------------- 1 | 2 || Key | 7 |Value | 8 |
|---|---|
| {{ key }} | 13 |{{ value }} | 14 |
| Property | 7 |Value | 8 |
|---|---|
| {{ envkey }} | 13 ||
| {{ key }} | 16 |{{ value }} | 17 |
| Property | 7 |Value | 8 |
|---|---|
| {{ prop.key }} | 13 ||
| {{ key }} | 16 |{{ value }} | 17 |
| Read log level | 5 |||||||
|---|---|---|---|---|---|---|
10 |
|
25 |
Read and write log levels of specified loggers.
5 |Show information provided by the Spring-Boot Actuators.
5 || Used Memory | 5 |Free Memory | 6 |Used Heap | 7 |Max Heap | 8 |Processors | 9 |Uptime | 10 |
|---|---|---|---|---|---|
| {{ application.metrics['mem'] / 1024 | number:2 }} MB | 15 |{{ application.metrics['mem.free'] / 1024 | number:2 }} MB | 16 |{{ application.metrics['heap.used'] / 1024 | number:2 }} MB | 17 |{{ application.metrics['heap'] / 1024 | number:2 }} MB | 18 |{{ application.metrics['processors'] }} | 19 |{{ application.metrics['uptime'] / 86400000 | floor | padZero }}:{{ application.metrics['uptime'] % 86400000 / 3600000 | floor | padZero }}:{{ application.metrics['uptime'] % 3600000 / 60000 | floor | padZero }}:{{ application.metrics['uptime'] % 60000 / 1000 | floor | padZero }} [d:h:m:s] | 20 |
29 |
--------------------------------------------------------------------------------
/src/main/java/de/codecentric/boot/admin/SpringBootAdmin.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package de.codecentric.boot.admin;
17 |
18 | import org.springframework.boot.SpringApplication;
19 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
20 | import org.springframework.context.annotation.Configuration;
21 | import org.springframework.context.annotation.Import;
22 |
23 | import de.codecentric.boot.admin.config.WebappConfig;
24 |
25 | @Configuration
26 | @EnableAutoConfiguration
27 | @Import(WebappConfig.class)
28 | public class SpringBootAdmin {
29 |
30 | /**
31 | * Starting point for application to boot.
32 | *
33 | * @param args
34 | * Passed arguments.
35 | */
36 | public static void main(String[] args) {
37 | SpringApplication.run(SpringBootAdmin.class, args);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/webapp/public/styles/main.css:
--------------------------------------------------------------------------------
1 | @import "fontcustom.css";
2 | @import "icons.css";
3 | @import "buttons.css";
4 | @import "typography.css";
5 | @import "base.css";
6 | @import "application.css";
7 | @import "highlight.css";
8 |
9 | .table > thead > tr > th {
10 | background-color: #34302D; /* lighten 3% */
11 | color: #f1f1f1;
12 | }
13 |
14 | .table tr.highlight > td {
15 | background-color: #6db33f !important;
16 | font-weight: bold;
17 | }
18 |
19 | .table-filter {
20 | background-color: #34302D;
21 | padding: 9px 12px;
22 | }
23 |
24 | .nav > li > a {
25 | color: #838789;
26 | }
27 |
28 | .nav {
29 | margin-bottom: 0;
30 | }
31 |
32 | .nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus {
33 | background-color: #34302D;
34 | border-color: #34302D;
35 | color: #f1f1f1;
36 | }
37 |
38 | a.spring-boot-logo {
39 | background: url("../img/platform-spring-boot.png") -1px -1px no-repeat;
40 | }
41 |
42 | a.spring-boot-logo span {
43 | display: block;
44 | width: 160px;
45 | height: 50px;
46 | background: url("../img/platform-spring-boot.png") 20px -6px no-repeat;
47 | }
48 |
49 | a:hover.spring-boot-logo span {
50 | opacity: 1;
51 | }
52 |
53 | span.up {
54 | color: #00AA00;
55 | }
56 |
57 | span.offline {
58 | color: #DD0000;
59 | font-weight: bold;
60 | }
61 |
62 | span.down, span.outofservice {
63 | color: #FF8800;
64 | font-weight: bold;
65 | }
66 |
67 | span.unknown {
68 | color: #DDDDDD;
69 | }
--------------------------------------------------------------------------------
/src/main/webapp/public/styles/buttons.css:
--------------------------------------------------------------------------------
1 | .btn.btn-black {
2 | background-color: #34302d;
3 | background-image: none;
4 | border-radius: 0;
5 | color: #f1f1f1;
6 | font-size: 14px;
7 | line-height: 14px;
8 | font-family: "Montserrat", sans-serif;
9 | border: 2px solid #6db33f;
10 | padding: 21px 60px;
11 | text-shadow: none;
12 | transition: border 0.15s;
13 | -webkit-transition: border 0.15s;
14 | -moz-transition: border 0.15s;
15 | -o-transition: border 0.15s;
16 | -ms-transition: border 0.15s;
17 | }
18 | .btn.btn-black.compact {
19 | padding: 6px 12px;
20 | font-size: 12px;
21 | }
22 | .btn.btn-black.sub-text {
23 | padding: 12px 0;
24 | }
25 | .btn.btn-black.sub-text p {
26 | margin-top: 6px;
27 | color: #eeeeee;
28 | font-size: 14px;
29 | line-height: 14px;
30 | font-family: "Montserrat", sans-serif;
31 | text-transform: none;
32 | }
33 | .btn.btn-black.on-black:hover {
34 | border-color: #6db33f;
35 | box-shadow: 0 1px 3px #0b0a0a;
36 | }
37 | .btn.btn-black.on-black:active {
38 | box-shadow: 0 1px 3px #0b0a0a, inset 0 3px 6px #0b0a0a;
39 | border-color: #6db33f;
40 | }
41 | .btn.btn-black.with-icon [class^="icon-"] {
42 | margin-right: 21px;
43 | font-size: 20px;
44 | vertical-align: top;
45 | line-height: 10px;
46 | }
47 | .btn.btn-black:hover {
48 | border-color: #34302d;
49 | box-shadow: none;
50 | text-decoration: none;
51 | }
52 | .btn.btn-black:active {
53 | box-shadow: inset 0 3px 6px #0b0a0a;
54 | border-color: #34302d;
55 | }
56 | .btn.uppercase {
57 | text-transform: uppercase;
58 | }
59 |
--------------------------------------------------------------------------------
/src/main/webapp/public/views/apps/logging/write.html:
--------------------------------------------------------------------------------
1 | | Write log level | 5 |||||||
|---|---|---|---|---|---|---|
10 |
|
43 |
Here you'll find all Spring-Boot applications that registered itself at this admin 5 | application.
6 |