码迷,mamicode.com
首页 > 编程语言 > 详细

eureka(注册中心)中spring-boot-starter-actuator监控

时间:2017-07-17 01:28:03      阅读:367      评论:0      收藏:0      [点我收藏+]

标签:eureka(注册中心)中spring-boot-starter-actuator监控

添加依赖

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

启动后台会看到

技术分享


就可以访问对应地址了,例如:

技术分享

配置需要监测的端口,如果不指定则使用的是server的端口,指定的话则过滤这个端口,不检测,比如不检测health.mail,下图如果不指定8082则使用的是server的8081

server:  
  port: 8081 
management:  
  port: 8082  
  health:  
    mail:  
      enabled: false


自定义配置待续


本文出自 “summit” 博客,请务必保留此出处http://786678398.blog.51cto.com/2082557/1948066

eureka(注册中心)中spring-boot-starter-actuator监控

标签:eureka(注册中心)中spring-boot-starter-actuator监控

原文地址:http://786678398.blog.51cto.com/2082557/1948066

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!