Spring Boot Actuator monitoring

1 Introduction

   Spring boot has four major killers: starters, autoConfiguration, cli, and actuator. The actuator is the monitoring component of springboot for the application, which can view statistical functions such as the configuration and resource usage of the application system.

2. Actuator main functions

HTTP method path describe Authentication Available by default Remark
GET /autoconfig View auto-configured usage true true  
GET /configprops View configuration properties, including default configuration true true  
GET /beans View a list of beans and their relationships true true  
GET /dump print thread stack true true  
GET /env View all environment variables true true  
GET /env/{name} View specific variable values true true  
GET /health View app health metrics false true  
GET /info View application information false true custom info:
GET /mappings View all url mappings true true  
GET /metrics View App Basic Metrics true true  
GET /metrics/{name} View specific metrics true true  
POST /shutdown close the app true false Need to configure enabled: true
GET /trace View basic tracking information true true  

3, management configuration

        management.port: Specifies the port number of the above method, which is separate from the service port number. If you do not want the above interface to be exposed in http, set management.port = -1

        management.address: specify the access address

    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325171635&siteId=291194637