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

相关推荐
小样vvv19 小时前
【分布式】深入剖析 Sentinel 限流:原理、实现
分布式·c#·sentinel
无眠_1 天前
【Spring Boot 与 Spring Cloud 深度 Mape 之七】服务容错与流量防护:Sentinel 全方位实战
spring boot·spring cloud·sentinel
点点滴滴的记录2 天前
Sentinel 相关知识点
java·微服务·sentinel
上等猿3 天前
Sentinel
sentinel
小马爱打代码3 天前
Sentinel 限流利器(功能以及源码解析)
sentinel
半导体郗3 天前
springboot使用阿里限流框架-sentinel
spring boot·后端·sentinel
宋发元8 天前
Redis Sentinel 详解
redis·bootstrap·sentinel
hycccccch9 天前
熔断降级(Sentinel解决)
笔记·sentinel
GIS工具-gistools20219 天前
哨兵-6 (Sentinel-6)
大数据·sentinel·gis
IT成长日记11 天前
Redis哨兵模式(Sentinel)高可用方案介绍与配置实践
redis·sentinel·高可用·哨兵模式