Spring Boot Admin - First official Release! - codecentric AG Blog

:

Today we are happy to announce the first official release of Spring Boot Admin. My colleague Thomas has created this Admin Application for Spring Boot a few weeks ago. Basically it gives you an overview of all running Spring Boot Micro Services in your environment. It shows the status, the version and the health of the applications in the dashboard and gives you also detailed informations such as JVM metrics, properties, loglevels, etc. All these data comes from the Spring Boot Actuator Endpoints. For futher informations, you can read the initial blog post here. The artifacts are also available on Maven Central so you can use it very easily in your project.

The following features have been recently added:

  • Visualization of JVM Metrics (see screenshot below)
  • Table Layout for the rest of the informations and properties
  • Raw links to directly access the JSON data
  • Upgrade to Spring Boot 1.1.6 and Spring 4.0.7

screenshot-metrics

To create the Spring Boot Admin Server add the following dependency to your pom.xml:

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

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

and place the Annotation “EnableAdminServer” in your Spring Boot Starter Class.

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

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

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.

<dependency>
   <groupId>de.codecentric</groupId>
   <artifactId>spring-boot-starter-admin-client</artifactId>
   <versions>1.0.2</version>
</dependency>

<dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-starter-admin-client</artifactId> <versions>1.0.2</version> </dependency>

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

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

The source code and a running example is available here.