Sentinel控制台实时监控空白

1、问题界面Sentinel控制台实时监控空白_第1张图片

2、查看机器列表

Sentinel控制台实时监控空白_第2张图片

3、解决:修改配置文件

把微服务关闭,然后在 sentinel 控制台的机器列表移除错位的机器IP

在application.yml添加 clientIp: localhost

spring:
  application:
    name: gulimall-seckill
  cloud:
    nacos:
      discovery:
        server-addr: localhost:8848
    #配置oss对象存储

    #配置sentinel
    sentinel:
      transport:
        port: 8719
        dashboard: localhost:8080
        clientIp: localhost

#暴露端口
management:
  endpoints:
    web:
      exposure:
        include: "*"

4、重启服务即可

Sentinel控制台实时监控空白_第3张图片
实时监控正常显示
Sentinel控制台实时监控空白_第4张图片

你可能感兴趣的:(sentinel,实时监控无数据)