Sentinel监测到了服务,但是实时监控不显示曲线图,应该怎么解决这个问题?

简介: 在虚拟机(VMware,IP:192.168.175.100)中部署了Sentinel,使用Docker运行,端口映射为8858。服务的`application.properties`配置指向Sentinel仪表盘(192.168.175.100:8858),客户端IP为物理机IP(192.168.2.2)。然而,cart-service在Sentinel中显示失联且无曲线图,而sentinel-dashboard自身监控正常。

个人配置:
虚拟机用的VMare,配置的ens33ip是192.168.175.100
sentinel部署在虚拟机中,其docker部署语句如下

docker run -d \
    -p 8858:8858 \
    --name sentinel \
    -v /root/sentinel-dashboard.jar:/app/sentinel-dashboard.jar \
    openjdk:11-jre-slim \
    java -Dserver.port=8858 -Dcsp.sentinel.dashboard.server=localhost:8858 -Dproject.name=sentinel-dashboard -jar /app/sentinel-dashboard.jar \
    --network my-net \
    sentinel

服务中的application.properties是这样配置的

spring:
  cloud:
    sentinel:
      transport:
        dashboard: 192.168.175.100:8858
        clientIp: 192.168.2.2  
        port: 8820
      http-method-specify: true
      eager: true

注:这里配置成 192.168.2.2 是因为在虚拟机中显示的我物理机的ip就是这个,如果换成其它的ip在sentinel中会显示失联状态

具体情况大家可以看图,还需要什么其它信息可以问我。

image.png

cart-service 的机器列表

image.png

cart-service实时监控不显示曲线图

image.png

sentinel-dashboard 的机器列表

image.png

sentinel-dashboard能正确显示曲线图

相关文章
|
Java 数据安全/隐私保护 Sentinel
微服务学习 | Spring Cloud 中使用 Sentinel 实现服务限流
微服务学习 | Spring Cloud 中使用 Sentinel 实现服务限流
|
运维 监控 Java
服务雪崩预防Sentinel
服务雪崩预防Sentinel
217 1
|
监控 算法 Java
sentinel 服务限流工作原理
sentinel 服务限流工作原理
|
监控 Java Sentinel
springcloud4-服务熔断hystrix及sentinel
springcloud4-服务熔断hystrix及sentinel
236 0
|
缓存 监控 UED
Hystrix/Sentinel 服务降级和服务熔断
Hystrix/Sentinel 服务降级和服务熔断
327 1
|
Dubbo Java 应用服务中间件
Sentinel服务框架对接Dubbo服务框架整合开发指南
开源框架适配 为了减少开发的复杂程度,Sentinel 对大部分的主流框架都进行了适配,例如:Web Servlet、Dubbo、Spring Cloud、gRPC、Spring WebFlux 和 Reactor 等。
|
负载均衡 Java Sentinel
|
SpringCloudAlibaba 负载均衡 Java
八.SpringCloudAlibaba极简入门-Sentinel兼容Feign进行服务熔断
Spring Cloud Alibaba是Spring Cloud的一个子项目,OpenFeign是Spring Cloud的客户端负载均衡器,使用Spring Cloud Alibaba依然可以很方便的集成OpenFeign,如果要使用OpenFeign作为服务客户端负载均衡,那么我们需要考虑OpenFeign开启Sentinel进行服务熔断降级。
|
自然语言处理 Java 数据安全/隐私保护
Springcloud之Sentinel服务容错
Springcloud之Sentinel服务容错
|
Java UED Sentinel
微服务守护神:Spring Cloud Sentinel,让你的系统在流量洪峰中稳如磐石!
【8月更文挑战第29天】Spring Cloud Sentinel结合了阿里巴巴Sentinel的流控、降级、熔断和热点规则等特性,为微服务架构下的应用提供了一套完整的流量控制解决方案。它能够有效应对突发流量,保护服务稳定性,避免雪崩效应,确保系统在高并发下健康运行。通过简单的配置和注解即可实现高效流量控制,适用于高并发场景、依赖服务不稳定及资源保护等多种情况,显著提升系统健壮性和用户体验。
310 1

热门文章

最新文章