我服务器以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相关配置