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

相关推荐
xiaoxiangsiyan2 天前
LNMP + Redis Sentinel 高可用架构部署手册(续)
运维·网络·数据库·redis·缓存·架构·sentinel
敲代码的嘎仔2 天前
从零搭建微服务:Spring Cloud Alibaba 全家桶踩坑实录(Nacos + OpenFeign + Gateway + Sentinel)
java·spring boot·spring·spring cloud·微服务·gateway·sentinel
小罗水5 天前
第14章 Sentinel 限流与 AI 降级
人工智能·sentinel
he___H5 天前
Sentinel使用实操
java·开发语言·sentinel
随风M记忆s6 天前
GEE&Python-demo:利用Sentinel-监测北京奥林匹克森林公园年NDVI变化(附Python版)
开发语言·python·sentinel
X-⃢_⃢-X6 天前
六、Sentinel
网络·数据库·sentinel
YOU OU8 天前
Redis哨兵 & 集群
数据库·redis·sentinel
遥感知识服务19 天前
Sentinel-1 + DEM + FwDET + 随机森林:从快速水深初估到多因子误差修正
算法·随机森林·sentinel
吴声子夜歌21 天前
Redis 3.x——哨兵API
redis·sentinel
振宇i22 天前
Sentinel Dashboard 1.8.9 部署+Systemd 托管完整操作文档
sentinel·cloudalibaba