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

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

相关推荐
8***a81511 小时前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
咖啡不甜不好喝1 天前
sentinel踩坑记录
sentinel·springcloud
b***62952 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
3***68842 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
我是小妖怪,潇洒又自在3 天前
springcloud alibaba(五)Sentinel实现流控与降级
spring·spring cloud·sentinel
0***v7773 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
m***66734 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
小坏讲微服务4 天前
Spring Cloud Alibaba 整合 Scala 教程完整使用
java·开发语言·分布式·spring cloud·sentinel·scala·后端开发
ruleslol5 天前
Spring Cloud: Sentinel入门讲解
spring cloud·sentinel
X***C8625 天前
使用bitnamiredis-sentinel部署Redis 哨兵模式
数据库·redis·sentinel