多的不说,直接进入主题

今天使用sentinel做个测试遇见了控制台空白问题

环境如下:
centos环境下docker拉取sentinel1.6.3

docker pull bladex/sentinel-dashboard:1.6.3


docker run --name sentinel -d  -p 8858:8858  bladex/sentinel-dashboard:1.6.3

pom文件

    <dependency>
        <groupId>com.alibaba.cloud</groupId>
        <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
    </dependency>

yml配置

spring:
  cloud:
    sentinel:
      transport:
        dashboard: 172.16.164.130:8858   # sentinel服务器地址和端口
        port: 8719

先说明问题所在,由于我是虚拟机docker拉取的sentinel环境,所以sentinel服务器地址和项目地址不一致,所以必须在yml配置中填写client-ip: 项目位置,所以我更改了yml配置

spring:
  cloud:
    sentinel:
      transport:
        dashboard: 172.16.164.130:8858   # sentinel服务器地址和端口
        port: 8719
        client-ip: 172.16.176.131   #当前项目地址,如果sentinel服务器地址和项目地址一致可不填写

重启一下服务,成功显示了监控界面

 

GitHub 加速计划 / sentine / Sentinel
36
7
下载
alibaba/Sentinel: Sentinel 是阿里巴巴开源的一款面向分布式服务架构的流量控制、熔断降级组件,提供实时监控、限流、降级和系统保护功能,适用于微服务治理场景。
最近提交(Master分支:19 天前 )
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> 11 天前
d9398b4f 12 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐