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

相关推荐
boy快快长大12 小时前
【Spring Cloud Alibaba】Sentinel(一)
sentinel
java干货13 小时前
Sentinel和Cluster,到底该怎么选?
sentinel
27^×13 小时前
Sentinel 与 Feign 整合详解:实现服务调用的流量防护
sentinel
爬山算法1 天前
Redis(43)Redis哨兵(Sentinel)是什么?
redis·bootstrap·sentinel
你是人间五月天4 天前
sentinel异常处理机制
sentinel
孤狼程序员4 天前
【Spring Cloud微服务】8.深度实战:微服务稳定性的守护神——Sentinel
spring cloud·微服务·sentinel
the beard6 天前
Feign整合Sentinel实现服务降级与Feign拦截器实战指南
java·spring·sentinel
微扬嘴角10 天前
springcloud篇5-微服务保护(Sentinel)
spring cloud·微服务·sentinel
java亮小白199710 天前
Spring Cloud 快速通关之Sentinel
java·spring cloud·sentinel
银迢迢11 天前
SpringCloud微服务技术自用笔记
java·spring cloud·微服务·gateway·sentinel