我们在order-service中整合Sentinel,并且连接Sentinel的控制台,步骤如下:
1.引入sentinel依赖:

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

 

2.配置控制台地址:

spring:
  cloud:
    sentinel:
      transport:
        dashboard: localhost:8080 # sentinel控制台地址

 

3.访问微服务的任意端点,触发sentinel监控

相关文章:

  • 2021-11-16
  • 2021-08-25
  • 2021-05-30
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-08-30
猜你喜欢
  • 2021-05-31
  • 2021-08-22
  • 2021-05-14
  • 2022-12-23
  • 2021-06-13
  • 2021-11-22
  • 2021-07-19
相关资源
相似解决方案