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 天前
Sentinel
sentinel
念言-ny3 天前
sentinel小记
java·spring boot·sentinel
my_styles4 天前
2025-alibaba-Sentinel组件
java·开发语言·sentinel
zfj3215 天前
手动搭建Redis1主2从+ 3 Sentinel 高可用集群
redis·sentinel·高可用
power-辰南9 天前
基于 Spring Cloud + Sentinel 的全面流量治理方案
spring·spring cloud·sentinel·流量治理
蔚一10 天前
微服务SpringCloudAlibaba组件sentinel教程【详解sentinel的使用以及流量控制、熔断降级、热点参数限流等,附有示例+代码】
java·spring boot·后端·微服务·架构·sentinel·intellij-idea
华农第一蒟蒻10 天前
Sentinel
java·开发语言·sentinel
qw94911 天前
Redis 09章——哨兵(sentinel)
数据库·redis·sentinel
FG.12 天前
微服务保护---Sentinel
微服务·sentinel
Xwzzz_12 天前
SpringCloud中Sentinel基础场景和异常处理
java·spring cloud·sentinel