Applicable scenarios:
1. The project scale is not large
2. The number of users is not large and the concurrency requirements are not strong
3. There is no dedicated operation and maintenance force
4. Exquisite team size
For some regular projects, or units where the division of corporate responsibilities is not very clear. Often a system goes from requirements to design, development, testing to final launch, operation and maintenance. Often 80% of the tasks are completed by the development team. Therefore, in addition to implementing the system's functions, developers must also provide customers with consultation and answer questions and solve production problems.
Just imagine, after an application is launched, there are no monitoring measures. Just like driving a car without any dashboard, no one feels safe on the road like this. How to balance simplicity and efficiency is something worth thinking about.
1. What is Springboot admin?
Spring Boot Admin is an open source community project for managing and monitoring SpringBoot applications. The application is registered with the Spring Boot Admin Server as a Spring Boot Admin Client (via HTTP) or discovered using a Spring Cloud registry (e.g. Eureka, Consul). Common functions or monitoring are as follows:
1. Display health status
2. Display build information number
3. Pay attention to 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 http tracking
9. Status change notification (via email, Slack, Hipchat,...)
10. Event log of status change (non-persistent)
......
2. Introduction to key integration
1. pom.xml statement
<properties> <java.version>1.8</java.version> <spring-boot-admin.version>2.3.1</spring-boot-admin.version> </properties>
2. spring-boot-admin introduction
<dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-actuator</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-security</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-web</artifactid> </dependency> <dependency> <groupid>de.codecentric</groupid> <artifactid>spring-boot-admin-starter-client</artifactid> <version>${spring-boot-admin.version}</version> </dependency> <dependency> <groupid>de.codecentric</groupid> <artifactid>spring-boot-admin-starter-server</artifactid> <version>${spring-boot-admin.version}</version> </dependency>
3. Server configuration
server: # 服务器的HTTP端口,默认为8080 port: 8085 # 日志配置 logging: # 已存在日志xml配置文件后,path与name 不生效 config: classpath:logback.xml spring: boot: admin: # Spring Boot Admin Server 服务端的相关配置 context-path: /admin # 配置 Spring
4. Client configuration
spring: application: name: springboot-admin-monitor boot: admin: # Spring Boot Admin Client 客户端的相关配置 client: # 设置 Spring Boot Admin Server 地址 url: http://localhost:${server.port}${spring.boot.admin.context-path} instance: prefer-ip: true # 注册实例时,优先使用 IP # Actuator 监控端点的配置项 management: endpoints: web: # Actuator 提供的 API 接口的根目录。默认为 /actuator base-path: /actuator exposure: # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 include: '*' # 已存在日志xml配置文件后,需要配置该项 endpoint: logfile: external-file: ./logs/sys-console.log
3. Related monitoring examples
1. Monitoring homepage
2. View application monitoring information
3. Real-time log output
4. Dynamic adjustment Log level
5, jvm
The above is the detailed content of What is the role and usage of springboot admin monitoring. For more information, please follow other related articles on the PHP Chinese website!

The article discusses using Maven and Gradle for Java project management, build automation, and dependency resolution, comparing their approaches and optimization strategies.

The article discusses creating and using custom Java libraries (JAR files) with proper versioning and dependency management, using tools like Maven and Gradle.

The article discusses implementing multi-level caching in Java using Caffeine and Guava Cache to enhance application performance. It covers setup, integration, and performance benefits, along with configuration and eviction policy management best pra

The article discusses using JPA for object-relational mapping with advanced features like caching and lazy loading. It covers setup, entity mapping, and best practices for optimizing performance while highlighting potential pitfalls.[159 characters]

Java's classloading involves loading, linking, and initializing classes using a hierarchical system with Bootstrap, Extension, and Application classloaders. The parent delegation model ensures core classes are loaded first, affecting custom class loa


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

Zend Studio 13.0.1
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.