Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the function and usage of springboot admin monitoring?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "what is the role and use of springboot admin monitoring", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the role and use of springboot admin monitoring" article.

Applicable scenarios:

1. The scale of the project is not large.

2. The number of users is not very large and the concurrency requirement is not strong.

3. No special operation and maintenance force.

4. Exquisite team size

For some regular projects, or the division of responsibilities of the enterprise is not very clear. Often a system from requirements to design, development, testing to the final launch, operation and maintenance. Often 80% of the tasks are done by the development team. As a result, developers not only have to achieve the functions of the system, but also consult and answer questions for customers and solve production problems.

Just imagine, after an application is launched, there are no monitoring measures. Just like driving a car without any dashboards, no one can get sense of security on the road like this. It is particularly worth thinking about how to strike a balance between minimalism and the pursuit of efficiency.

What is Springboot admin?

SpringBoot Admin is an open source community project for managing and monitoring SpringBoot applications. The application is discovered as a Spring Boot Admin Client to register for Spring Boot Admin Server (through HTTP) or to use a SpringCloud registry (such as Eureka,Consul). Common features or monitoring are as follows:

1. Show your health status

2. Display the construction information number

3. Follow and download log files

4. View jvm system and environment properties

5. Easy log-level management

6. Interact with JMX-beans

7. View thread dump

8. View the http trace

9. Status change notification (via email, Slack,Hipchat, … )

10. Event log of state changes (non-persistent)

.

II. Introduction to key integration

1. Pom.xml statement

1.8 2.3.1

2. Introduction of spring-boot-admin

Org.springframework.boot spring-boot-starter-actuator org.springframework.boot spring-boot-starter-security org.springframework.boot spring-boot-starter-web de.codecentric spring-boot-admin-starter-client ${spring-boot-admin.version} de.codecentric spring-boot-admin-starter-server ${spring-boot-admin.version}

3. Server configuration

Server: # HTTP port of the server, default is 8080 port: 808 log configuration logging: # after the log xml configuration file already exists, path and name do not take effect config: classpath:logback.xmlspring: boot: admin: # Spring Boot Admin Server server configuration context-path: / admin # configure Spring

4. Client configuration

Spring: application: name: springboot-admin-monitor boot: admin: # configuration of Spring Boot Admin Client client client: # set Spring Boot Admin Server address url: http://localhost:${server.port}${spring.boot.admin.context-path} instance: prefer-ip: true # when registering an instance Priority is given to using IP # Actuator to monitor the root directory of the API interface provided by the endpoint configuration item management: endpoints: web: # Actuator. The default is / actuator base-path: / actuator exposure: # requires open endpoints. By default, only health and info endpoints are turned on. By setting *, you can open all endpoints. Include:'*'# after the log xml configuration file already exists, you need to configure the endpoint: logfile: external-file:. / logs/sys-console.log. 3. Related monitoring instance

1. Monitor the home page

2. View the application monitoring information

3. Real-time log output

4. Dynamically adjust the log level

5 、 jvm

The above is the content of this article on "what is the function and use of springboot admin monitoring". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report