In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to quickly build a monitoring platform for Spring Boot Admin. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Developers who have used Springboot all know actuator, which is a functional module provided by Springboot for self-examination and monitoring of the application system. With the help of Actuator developers can easily view and count some monitoring indicators of the application system. Unfortunately, there is no visual interface, so we can only view the corresponding metrics through dry json data, as shown below:
Visual monitoring indicator platform Spring Boot Admin, which uses the functions provided by spring-boot-starter-actuator to integrate the status of various micro-services, and provides a good interface to view support, and can dynamically modify the instance log level.
Spring Boot Admin open source address: https://github.com/codecentric/spring-boot-admin
Spring Boot Admin is divided into server and client, which is very easy to use. The server can check the status of each microservice, and the client registers the microservice with the server.
Server side
Let's first build the server, generate a spring boot project directly using start.spring.io, and introduce the following dependencies
Configure port and service name
Server.port=8090 spring.application.name=admin-server
Start the class by adding an annotation @ EnableAdminServer
After startup, open the url and display the following
Client
For the spring boot project, you can directly add the dependencies shown in the following figure
The server addresses that are configured for registration in application.properties are as follows
Spring.application.name=admin-client spring.boot.admin.client.url= http://127.0.0.1:8090 management.endpoints.web.exposure.include=* management.endpoint.health.show-details=ALWAYS
After the startup is complete, check the server side, as shown below
View related metrics
Apply the wall to quickly see those service exceptions
Normal situation
Abnormal situation
Click apply to view the corresponding metrics
View the environment variable configuration of properties
View log level
Spring Boot Admin provides the following functions for registered applications:
Show your health.
Displays details such as JVM and memory metrics micrometer.io metrics data source metrics cache metrics
Show internal number
Follow and download log files
View JVM system and environment properties
View Spring Boot configuration properties
Publishable / env-&/ refresh-endpoint that supports Spring Cloud
Easy log-level management
Interact with JMX-beans
View thread dump
View http-traces
View audit events
View http endpoints
View scheduled tasks
View and delete active sessions (using spring-session)
View Flyway / Liquibase database migration
Download heapdump
Status change notification (via email, Slack,Hipchat, etc.)
Event log for state changes (non-persistent)
This is the end of the article on "how to quickly build a monitoring platform for Spring Boot Admin". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.