1.新增spring-boot-starter-actuator的依赖

  gradle:

compile('org.springframework.boot:spring-boot-actuator')

  maven:

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

2.重启项目

  控制台会出现端点监控

3.端点介绍

  原生端点

  根据端点的作用来说,我们可以原生端点分为三大类:

  • 应用配置类:获取应用程序中加载的应用配置、环境变量、自动化配置报告等与Spring Boot应用密切相关的配置类信息。
  • 度量指标类:获取应用程序运行过程中用于监控的度量指标,比如:内存信息、线程池信息、HTTP请求统计等。
  • 操作控制类:提供了对应用的关闭等操作类功能。

参考:http://blog.didispace.com/spring-boot-actuator-1/

  

相关文章:

  • 2021-10-05
  • 2021-04-02
  • 2021-04-20
  • 2022-01-18
  • 2021-05-24
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-05-11
  • 2021-12-21
  • 2021-07-02
  • 2022-03-02
  • 2021-04-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案