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

相关推荐
u01040583616 小时前
Java中的服务熔断机制:Hystrix与Sentinel的比较
java·hystrix·sentinel
what丶k16 小时前
微服务稳定性守护者:Sentinel 全面使用指南(从入门到企业级落地)
微服务·架构·sentinel
鸽鸽程序猿18 小时前
【JavaEE】【SpringCloud】 熔断和限流 Alibaba Sentinel
spring cloud·java-ee·sentinel
小楼v1 天前
如何使用Sentinel进行流量控制和熔断
java·后端·sentinel
MediaTea4 天前
Python:_sentinel 命名约定
开发语言·python·sentinel
短剑重铸之日5 天前
《SpringCloud实用版》Feign + LoadBalancer + Sentinel 微服务调用链路
spring cloud·微服务·sentinel·feign·loadbalancer
短剑重铸之日5 天前
《SpringCloud实用版》告别 Hystrix!Sentinel vs Resilience4j 深度对比 & 选型
spring cloud·hystrix·sentinel·熔断限流降级
wfsm8 天前
sentinel
sentinel
sunnyday042610 天前
Spring Cloud Alibaba Sentinel 流量控制与熔断降级实战指南
spring boot·sentinel·springcloud
递归尽头是星辰13 天前
Spring Cloud Alibaba 核心理论体系:Nacos、Sentinel、Seata深度解析
spring cloud·nacos·sentinel·seata·微服务治理