Sentinel 整合完成

This commit is contained in:
2023-08-17 09:16:56 +08:00
parent f022d1a9a4
commit d50c81ecaa
14 changed files with 122 additions and 13 deletions

View File

@@ -14,3 +14,17 @@ spring:
discovery:
# 配置Nacos注册中心地址
server-addr: localhost:8848
# 将ephemeral修改为false表示非临时实例用于持续监控
ephemeral: false
cluster-name: Chengdu
namespace: dd668135-0bfe-489f-ab2b-24aefb21d156
loadbalancer:
nacos:
enabled: true
sentinel:
transport:
# 添加监控页面地址即可
dashboard: localhost:8858
# 关闭Context收敛这样被监控方法可以进行不同链路的单独控制
web-context-unify: false
block-page: /blocked