Dubbo2.6.2实现actuator(dubbo-spring-boot-actuator)

本文介绍如何在项目中集成dubbo-spring-boot-actuator和spring-boot-starter-actuator,通过配置yaml文件实现对dubbo服务的监控。特别关注了actuator端点的配置细节,包括如何正确暴露URL端点,以及如何根据需求自定义配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

处理方式:

  1. pom.xml引入dubbo-spring-boot-actuator(版本:0.2.0)和spring-boot-starter-actuator(版本:2.0.4.RELEASE)

        872355e6178b84544582bae74223d4a411f.jpg

  1. actuator的配置yaml

        ea1c9e569188c116a3a70eafe36b195cf24.jpg 

说明:图中的1已经配置了dubbo和dubbo-services,但是url端点并没有暴露,

原因:我在2处,已经enabled=false了

所以:生效的端点只有:/actuator/dubbo/shutdown

 

根据如上规则,自行去自定义配置

转载于:https://my.oschina.net/u/2350117/blog/3064199

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值