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

相关推荐
sevevty-seven11 天前
Sentinel
linux·服务器·sentinel
秋恬意11 天前
什么是Sentinel?以及优缺点
sentinel
liang899911 天前
Sentinel(一):Sentinel 介绍和安装
sentinel
述雾学java12 天前
Sentinel 服务限流机制
sentinel
2401_8532757313 天前
Sentinel实现原理
服务器·网络·sentinel
苏格拉没有底_coder15 天前
【Redis】Sentinel哨兵
redis·sentinel
苏格拉没有底_coder20 天前
基于 Spring Cloud Gateway + Sentinel 实现高并发限流保护机制
sentinel
未来并未来21 天前
Sentinel 流量控制安装与使用
开发语言·python·sentinel
·云扬·22 天前
【PmHub面试篇】集成 Sentinel+OpenFeign实现网关流量控制与服务降级相关面试题解答
面试·职场和发展·sentinel
ℳ₯㎕ddzོꦿ࿐22 天前
Ubuntu 24.04 上安装与 Docker 部署 Sentinel
ubuntu·docker·sentinel