alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.38k stars 8.02k forks source link

Sentinel的actuator/health 健康监测 #2020

Open chenxu1992 opened 3 years ago

chenxu1992 commented 3 years ago

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

当我试用SpringbootAdmin对配置了sentinel的gateway进行监测时,报sentinel的actuator/health方法不存在。导致springbootAdmin无法监测gateway的健康状况

Describe what you expected to happen

监测到监控状况

How to reproduce it (as minimally and precisely as possible)

  1. springboot cloud gateway 配置sentinel
  2. gateway注册到springbootAdmin上
  3. 能看到监测到gateway启动了,但是健康情况无法监测。后台看了日志显示actuator/health方法不存在。如果在gateway的配置中设置management.health.sentinel.enabled=false则可以正常监测到

Tell us your environment

springboot 2.2.1 springcloud HOXTEN.SR1 JAVA VERSION 1.8 NACOS 1.8

Anything else we need to know?

sczyh30 commented 3 years ago

是用了 Spring Cloud Alibaba Sentinel 吗?Sentinel 本身不提供这些 actuator 接口,可以发下相关的错误信息看下。

sczyh30 commented 3 years ago

Closing this issue due to no further feedback.