Overview

Spring Boot Admin – First official Release!

6 Comments

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

Setup the server

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>

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);
	}
}

Client Applications

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>

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

The source code and a running example is available here.

Kommentare

  • 28. September 2014 von Hanan Bareket

    Hey,

    This is exactly what I was looking for !! Thanks!
    However, I have one issue with the metric page. Where can I post Issues?

    Thanks,
    Keep the great work.

  • Hi Dennis,
    This post is very helpful, Thank you.

    I am running the sample example code from the above mentioned git location. server started fine and have 2 applications registered
    But I run into a problem, layout of the admin app looks different from the one shown in the above image. I can see the header and footer but no body. Clicking ‘Application’ and ‘About’ does not do anything. I have tried in Firefox 33.1, Crome Version 39.0.2171.65 m and IE 10 and noticed no difference.

    Any help is greatly appreciated. Waiting for your reply…

    Thank you,
    Mohana.

  • Its working now. Changed the sample projects pom’s from 1.1.0-snapshot to 1.1.0 fixed it.

  • 11. February 2015 von Michael

    Typo: , should be

Comment

Your email address will not be published. Required fields are marked *