SpringBoot Admin user guide (recommended), springbootadmin
Spring Boot Admin is an application that manages and monitors your Spring Boot applications. These applications are registered through Spring Boot Admin Client (HTTP) or discovered using Spring Cloud (such as Eureka. The UI is just an AngularJs application on the Spring Boot Actuator endpoint.
Quick Start
First, create a SpringBoot project in IDEA and treat it as a server. The project is as follows:
Then introduce the dependency in pom. xml:
<dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-server</artifactId> <version>1.5.6</version></dependency><dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-server-ui</artifactId> <version>1.5.6</version></dependency>
Continue to introduce annotation in the startup class SpringbootAdminApplication. java@ EnableAdminServerAnd then run the project:
Access http: // localhost: 8084:
No application information is found.
Next, create a SpringBoot project and use it as a client program. The project is as follows:
Add dependency in pom. xml:
<dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-client</artifactId> <version>1.5.6</version></dependency>
Then, in application. yml, set:
Spring. boot. admin. url = http: localhost: 8094 is used to register the current application to Spring Boot Admin.
You can also set the default name if spring. boot. admin. client. name: (Application name) is not set.
Run the two projects:
ClickDetailButton: You can see the health value, memory, JVM, GC, and other information of the application.
Metrics information:
Environment Information:
Log information:
JMX information:
Thread information:
Trace tracing information:
You can also download the Heapdump file.
There is a red × behind the Application List on the homepage. we can remove the registered application, but as long as you do not stop the application, it will be registered immediately.
In addition, the version and info of the Application List are empty. Let's see how to change it:
info.groupId: @project.groupId@info.artifactId: @project.artifactId@info.version: @project.version@
Re-run the client program and refresh the page to find:
You can also query application event changes:
Client application
JMX bean Management
To interact with JMX-beans on the management interface, you must include Jolokia in the client application,
Add dependency to pom. xml:
<dependency> <groupId>org.jolokia</groupId> <artifactId>jolokia-core</artifactId></dependency>
After restarting the client program, you can interact with JMX here:
There are also many SpringBoot Admin Client configuration options:
Http://codecentric.github.io/spring-boot-admin/1.5.6/#spring-boot-admin-client
Server programs
Some SpringBoot Admin server program configuration options are as follows:
Http://codecentric.github.io/spring-boot-admin/1.5.6/#spring-boot-admin-server
The official documentation also provides some knowledge about service offline message notifications. For details, refer:
Http://codecentric.github.io/spring-boot-admin/1.5.6/#_notifications
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.