README.md 2.85 KB
Newer Older
Thomas Bosch committed
1 2
spring-boot-admin
=================
Dennis Schulte committed
3 4
[![Build Status](https://travis-ci.org/codecentric/spring-boot-admin.png?branch=master)](https://travis-ci.org/codecentric/spring-boot-admin)

Thomas Bosch committed
5 6 7 8 9 10 11

This is a simple admin interface for [Spring Boot](http://projects.spring.io/spring-boot/ "Official Spring-Boot website") applications.

This application provides a simple GUI to administrate Spring Boot applications in some ways. At the moment it provides the following features for every registered application.

<ul>
<li>Show name/id and version number</li>
Thomas Bosch committed
12
<li>Show online status</li>
Thomas Bosch committed
13 14 15 16 17 18 19 20 21 22
<li>Download main logfile</li>
<li>Show details, like</li>
<ul>
<li>Java system properties</li>
<li>Java environment properties</li>
<li>Memory metrics</li>
<li>Spring environment properties</li>
</ul>
</ul> 

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
#### Server application

Add the following dependency to your pom.xml.

```
<dependency>
	<groupId>de.codecentric</groupId>
	<artifactId>spring-boot-admin-server</artifactId>
	<version>1.0.2</version>
</dependency>
```

Create the Spring Boot Admin Server with only one single Annotation.

```
@Configuration
@EnableAutoConfiguration
@EnableAdminServer
public class Application {
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
```

Dennis Schulte committed
48
See also the [example project](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-example) in this repository.
49

Thomas Bosch committed
50 51
#### Client applications

Dennis Schulte committed
52
Each application that want to register itself to the admin application has to include the [spring-boot-starter-admin-client](https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-starter-admin-client) as dependency. This starter JAR includes some [AutoConfiguration](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#using-boot-auto-configuration "Spring Boot docu") features that includes registering tasks, controller, etc.
53 54 55 56 57 58 59 60

```
<dependency>
	<groupId>de.codecentric</groupId>
	<artifactId>spring-boot-starter-admin-client</artifactId>
	<version>1.0.2</version>
</dependency>
```
Thomas Bosch committed
61

Dennis Schulte committed
62 63 64 65 66 67
Inside your application.properties you also have to define the URL of the Spring Boot Admin Server, e.g.

```
spring.boot.admin.url=http://localhost:8080
```

68 69 70
#### Screenshots

##### Dashboard
Thomas Bosch committed
71 72

[](url "title") 
73
<img src="https://raw.githubusercontent.com/codecentric/spring-boot-admin/master/screenshot.png">
74 75 76 77 78

##### Metrics

[](url "title") 
<img src="https://raw.githubusercontent.com/codecentric/spring-boot-admin/master/screenshot-metrics.png">
79 80 81 82 83 84 85 86 87 88 89 90 91 92

#### Build

```shell
mvn clean package
```

#### Release

```shell
mvn build-helper:parse-version versions:set -DnewVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}
mvn -Psign-artifacts clean deploy
```

93 94 95 96 97 98 99 100 101 102
#### Increment version for next release

Example:

```shell
mvn build-helper:parse-version versions:set -DnewVersion=1.0.0-SNAPSHOT
mvn versions:commit
```