Sentinel的控制台部署在服务器,控制台一直读取不到本机的服务的原因
Sentinel
alibaba/Sentinel: Sentinel 是阿里巴巴开源的一款面向分布式服务架构的流量控制、熔断降级组件,提供实时监控、限流、降级和系统保护功能,适用于微服务治理场景。
项目地址:https://gitcode.com/gh_mirrors/sentine/Sentinel

·
控制台一直报
2021-02-22 17:36:48.641 ERROR 7265 --- [pool-2-thread-1] c.a.c.s.dashboard.metric.MetricFetcher : Failed to fetch metric from http://192.168.111.19:8719/metric?startTime=1613986473000&endTime=1613986479000&refetch=false (ConnectionException: Connection timed out)
这个错误。
而且在这个服务器部署的sentinel控制台上面拿不到远程服务器Nacos里面配置的限流规则,但是在本机启动一个dashboard项目就可以看到Nacos里面配置的。
原因是本机网络是局域网,sentinel需要监控主机,sentinel部署在服务器的话是无法访问到本机网络的,所以要么sentinel和应用都部署上服务器,要么都在本地运行




alibaba/Sentinel: Sentinel 是阿里巴巴开源的一款面向分布式服务架构的流量控制、熔断降级组件,提供实时监控、限流、降级和系统保护功能,适用于微服务治理场景。
最近提交(Master分支:21 天前 )
4a419818
* Improved Date formatter
* change in naming conv
* change in datetime format
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> 13 天前
d9398b4f
14 天前
更多推荐
所有评论(0)