Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

[BUG] Failed to fetch metric from <http://192.168.124.10:8721/metric?startTime=1755785284000&endTime=1755785290000&refetch=false> (ConnectionException: Connection refused)

Open xiaoke1230 opened this issue 5 months ago • 1 comments

我服务器以docker部署sentinel-dashboard,docker logs提示 Failed to fetch metric from http://192.168.124.10:8719/metric?startTime=1755785282000&endTime=1755785288000&refetch=false (ConnectionException: Connection refused) 本地windows服务配置: spring: cloud: sentinel: # 启用 Sentinel enabled: true # 无流量也主动向 Dashboard 建立连接 eager: true # 控制台地址(请确认端口) transport: dashboard: 192.168.124.5:8888 port: 8719 #可以指定本机ip client-ip: 192.168.124.10 # 数据源配置(规则持久化至 Nacos) datasource: # 限流规则(服务内 FlowRule) flow: nacos: server-addr: 192.168.124.5:8848 data-id: sentinel-flow-rules group-id: SENTINEL_GROUP namespace: public data-type: json username: nacos password: nacos rule-type: flow 他们通过局域网连接,我在服务器中curl http://192.168.124.10:8721/metric?startTime=1755785284000&endTime=1755785290000&refetch=false 是有返回的 1755786325000|cpu_usage|1904|0|0|0|0|0|0|0,请问怎么解决?这个和从nacos获取sentinel配置有关吗?现在还有个问题就是无法从nacos拉取sentinel相关配置

xiaoke1230 avatar Aug 21 '25 14:08 xiaoke1230

这个接口是dashboard定时从使用sentinel的节点获取metric数据,本地端口都是互通的肯定是没有问题的,docker部署需要开启8719的端口

hq112415 avatar Sep 15 '25 07:09 hq112415