Skip to main content

Spring Boot Admin

What is Spring Boot Admin?

Spring Boot Admin is a Angular based application, developed on top of the Spring Actuator Endpoints. It allow us to monitor and manage the Spring Boot applications.


How to setup Spring Boot Admin

  1.  Create the simple spring boot project with https://start.spring.io/
  2.  Add Spring Boot Admin Server and UI depedencies
      1. <dependency>
            <groupId>de.codecentric</groupId>
            <artifactId>spring-boot-admin-server</artifactId>
            <version>1.5.7</version>
        </dependency>
        <dependency>
            <groupId>de.codecentric</groupId>
            <artifactId>spring-boot-admin-server-ui</artifactId>
            <version>1.5.7</version>
        </dependency>
  3.  Add @EnableAdminServer in the Spring Boot Configuration
    1. @Configuration
      @EnableAutoConfiguration
      @EnableAdminServer
      public class SpringBootAdminApplication {
          public static void main(String[] args) {
              SpringApplication.run(Application.class, args);
          }
      }
  4. Add Spring Boot Admin client dependency in the client application (the application which we need to monitor)
        1. <dependency>
              <groupId>de.codecentric</groupId>
              <artifactId>spring-boot-admin-starter-client</artifactId>
              <version>1.5.7</version>
          </dependency>
  5. Tell the client where to find the Spring Boot Admin Server , It can be done in two ways
      1. Static Configuration (add the below entry in application.properties)
        1. spring.boot.admin.url=http://localhost:1111
      2. Discovery Client (Eureka) (not covered in this post)

Sample Spring Boot Admin Project

The simple spring boot admin project can be available in github
Note: As of now the Spring Boot Admin is not compatible with Spring Boot 2


Comments

Popular posts from this blog

Implementing Turn-by-Turn Navigation with the GraphHopper Routing Engine

 Introduction to Turn-by-Turn Navigation Turn-by-turn navigation is a feature that guides users through a journey step-by-step using voice or visual prompts. It is typically found in GPS navigation apps and can be used for driving, walking, and biking. When it comes to the actual implementation, turn-by-turn navigation utilizes several technologies such as GPS, maps, and routing algorithms to guide users along the best route to their destination. In this article, we will explore the implementation of turn-by-turn navigation using the GraphHopper library and OpenStreetMap data. Understanding the GraphHopper Routing Engine GraphHopper Routing Engine is an open-source routing library that allows developers to calculate efficient routes for various transportation modes, such as cars, bikes, and walking. It utilizes OpenStreetMap data to generate a routing graph, which is then used to calculate the fastest or shortest routes between two points. GraphHopper is written in Java and can be ...

Gobichettipalayam - Kutti Kodambakkam

Android application test automation

Test automation for mobile applications  In the mobile application development, testing plays the major role to ensure the quality.  The test automation process helps to speed up the testing process while doing the more regressions. In this article, we are going to see about the Appium test framework and how it is used to automate the Android application testing. What is Appium? Appium is an open-source framework that allows QAs to conduct automated app testing on different platforms like Android, iOS, and Windows. Appium frameworks allows to create a test scripts in different programming languages like Java,C,C#. Architecture Appium is a node.js webserver it contains the implementation of Selenium webdriver and REST API. Source:  nishantverma.gitbooks.io Appium client libraries Appium provides the client libraries in different programming languages. These client libraries are used in the test scripts to fire the test.  Appium client library communicates with the App...