sentinel使用控制台实现

1、添加依赖

<!-- 整合控制台 -->
<dependency >
<groupId >com.alibaba.csp</groupId >
<artifactId >sentinel-transport-simple-http</artifactId >
<version >1.8.0</version >
</dependency >

此项方法,只是单独的添加整合sentinel控制台

SpringCloudAlibaba整合了的,只需要添加:

<!--sentinel 依赖 -->
<dependency >
<groupId >com.alibaba.cloud</groupId >
<artifactId >spring-cloud-starter-alibaba-sentinel</artifactId >
</dependency >

2、下载控制台jar包

Releases · alibaba/Sentinel · GitHub 此处选择使用1.8.0

3、启动

java -jar sentinel-dashboard-1.8.0.jar

用户可以通过如下参数进行配置:

###用于定指控制台的端口,默认为8080

-Dserver.port=8080

###用于指定控制台的登录用户名为 sentinel

-Dsentinel.dashboard.auth.username=sentinel

###用于指定控制台的登录密码为 123456

-Dsentinel.dashboard.auth.password=123456

###用于指定 Spring Boot 服务端 session 的过期时间,如 7200 表示 7200 秒;60m 表示 60 分钟, 默认为 30 分钟

-Dserver.servlet.session.timeout=7200

4、访问地址

默认地址:http://localhost:8080/#/login

默认用户名/密码:sentinel/sentinel

5、项目整合sentinel

初始化登录以后,无任何的菜单数据,因为没有服务整合使用了这个控制台。需要调用了项目相关的接口才会有对应数据。

相关推荐
回到原点的码农21 小时前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
没有bug.的程序员2 天前
黑客僵尸网络的降维打击:Spring Cloud Gateway 自定义限流剿杀 Sentinel 内存黑洞
java·网络·spring·gateway·sentinel
xiaolingting4 天前
Gateway 网关流控与限流架构指南
spring cloud·架构·gateway·sentinel
sc_爬坑之路5 天前
redis windows环境配置读写分离:一主一从 + Sentinel 完整实战
windows·redis·sentinel
sc_爬坑之路5 天前
Linux 部署 Redis:一主一从 + Sentinel 完整实战
linux·redis·sentinel
杜子不疼.5 天前
Spring Cloud 熔断降级详解:用 “保险丝“ 类比,Sentinel 实战教程
人工智能·spring·spring cloud·sentinel
yc_xym7 天前
Redis哨兵(Sentinel)机制
数据库·redis·sentinel
Thomas.Sir7 天前
深入剖析 Sentinel:阿里开源的微服务流量防卫兵
微服务·开源·sentinel
廋到被风吹走21 天前
稳定性保障:限流降级深度解析 —— Sentinel滑动窗口算法与令牌桶实现
运维·算法·sentinel
笨蛋不要掉眼泪25 天前
Sentinel 热点参数限流实战:精准控制秒杀接口的流量洪峰
java·前端·分布式·spring·sentinel