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通信原理

相关推荐
流烟默1 天前
Spring Cloud 微服务 Sentinel 热点参数与授权规则集成指南(附架构建议)
spring cloud·微服务·架构·sentinel
Thomas.Sir2 天前
第23课:Sentinel熔断降级、系统自适应保护、集群限流
spring cloud·sentinel
jyOverQ3 天前
Redis 主从复制、Sentinel 和 Cluster 到底有什么区别?
java·redis·sentinel
流烟默5 天前
网关 Sentinel 限流实战:API 分组、规则加载与全量匹配踩坑记
nacos·gateway·sentinel·流控规则
guo_wen_qiang9 天前
云服务器sentinel搭建-控制台
服务器·sentinel
guo_wen_qiang9 天前
项目使用sentinel遇到的问题
java·sentinel
天天喝旺仔25 天前
分布式服务容错实战:用 Sentinel 实现限流、熔断与降级
分布式·微服务·云原生·sentinel
YOU OU1 个月前
Alibaba Sentinel
sentinel
流烟默1 个月前
Sentinel 规则持久化到 Nacos 实践(网关篇 + 普通应用篇)
nacos·sentinel·规则持久化
莫得感情 o1 个月前
Redis 09 · 高可用:Sentinel 如何发现故障并完成切主
redis·缓存·sentinel