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.01^10002 天前
[000-01-008].第08节:Sentinel 环境搭建
sentinel
世俗ˊ2 天前
微服务-- Sentinel的使用
java·微服务·sentinel
朱杰jjj3 天前
Sentinel实时监控不展示问题
sentinel
灰色孤星A6 天前
微服务保护学习笔记(五)Sentinel授权规则、获取origin、自定义异常结果、规则持久化
微服务·sentinel·微服务保护·规则持久化·授权规则·雪崩问题
晴子呀11 天前
Redis Sentinel(哨兵)详解
数据库·redis·sentinel
cnsummerLi13 天前
springboot项目引入Sentinel熔断
java·spring boot·sentinel
Hsu琛君珩13 天前
【Redis】Redis Sentinel(哨兵)系统:自动故障恢复与高可用性配置全解
redis·sentinel·wpf
钗头风14 天前
(十五)SpringCloudAlibaba-Sentinel持久化到Nacos
sentinel
这河里吗l16 天前
Java后端面试题(微服务相关)(day12)
java·开发语言·微服务·gateway·sentinel
missterzy17 天前
Spring Boot 整合 Sentinel 实现流量控制
spring boot·后端·spring cloud·sentinel