Sentinel-Dashboard安装

1. Docker官方镜像

找到跟你版本相对于的镜像进行拉取:

https://hub.docker.com/r/bladex/sentinel-dashboard

bash 复制代码
# 运行容器 Sentinel默认端口 8858
docker run --name sentinel-dashboard -p 8858:8858 -d bladex/sentinel-dashboard:1.8.6


用户名 sentinel 密码 sentinel

2.访问UI


结合Dashboard使用

1、引入依赖

XML 复制代码
 <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  </dependency>
  

2 、添加配置,为微服务设置sentinel控制台地址

bash 复制代码
#服务启动直接控制台建立心跳连接
spring.cloud.sentinel.eager=true#此配置项定义了 Sentinel 控制台(Dashboard)的地址和端口
spring.cloud.sentinel.transport.dashboard=192.168.11.99:8858

3 、IDE配置启动参数(兼容)

++-Dcsp.sentinel.dashboard.server=192.168.11.99:8858++

4 访问接口查看控制台

4.1 验证效果

4.2 微服务和Sentinel Dashboard通信原理

相关推荐
xiao-xiang9 小时前
redis-sentinel基础概念及部署
数据库·redis·sentinel
Armyyyyy丶7 天前
Sentinel原理之责任链详解
java·sentinel·熔断限流
超人也会哭️呀9 天前
Redis(八):Redis高并发高可用(哨兵Sentinel)
redis·bootstrap·sentinel·哨兵·哨兵模式·高并发高可用
转身後 默落12 天前
14.Redis 哨兵 Sentinel
redis·bootstrap·sentinel
CHARLIIE16 天前
sentinel
sentinel
曹朋羽17 天前
spring cloud sentinel 动态规则配置
spring·spring cloud·sentinel
java叶新东老师20 天前
四、搭建springCloudAlibaba2021.1版本分布式微服务-加入openFeign远程调用和sentinel流量控制
分布式·微服务·sentinel
曹朋羽23 天前
Spring Cloud Alibaba Sentinel 基本工作原理源码阅读
sentinel
Zfox_1 个月前
Redis:哨兵(Sentinel)
服务器·数据库·redis·缓存·sentinel
Bug改不动了1 个月前
微服务雪崩防护最佳实践之sentinel
java·sentinel