In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to analyze Spring Boot Admin monitoring. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Sping boot
SpringBoot Admin is an open source community project for managing and monitoring SpringBoot applications. The application registers with Spring Boot Admin Server as Spring Boot Admin Client or discovers it using the SpringCloud registry (Eureka, etc.).
1. Spring Boot Actuator
Actuator has its own monitoring function for SpringBoot, which can help monitor the internal operation of the program, such as monitoring status, Bean loading, environment variables, log information, thread information and so on.
Org.springframework.boot spring-boot-starter-actuator
Related configuration:
# release the Actuator Web REST endpoint, otherwise you will not be able to access management: endpoint: health: # Endpoint health. The default value is "never". Setting it to "always" can display the hard disk usage and thread conditions show-details: always endpoints: web: exposure: # set the content exposed by the endpoint. Default ["health", "info"] Setting "*" means exposing all accessible endpoints include: "*"
After starting login, you can see the monitoring information of spring-boot.
II. Spring Boot Admin
Spring-boot-admin-starter-client
The client needs to introduce the pom of client, which can be discovered by the server.
De.codecentric spring-boot-admin-starter-client 2.2.3
Configuration Information:
Spring: application: # Spring Boot Admin client project name. If it is not set, the automatically generated random id name: spring-boot-demo-admin-client boot: admin: client: # Spring Boot Admin server address url: "http://localhost:8000/"spring-boot-admin-starter-server" will be used.
The client needs to introduce the pom of the server.
De.codecentric spring-boot-admin-starter-server 2.2.3
The port is consistent with the boot:admin: client:url: configured by client
Server: port: 8000
Note that the server needs to add startup comments to the startup class:
@ EnableAdminServer
Click on the application wall to view the details:
Memory usage:
View the mapping:
There are also JVM, cache, log level configuration, etc.
On how to analyze Spring Boot Admin monitoring to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can 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.