From 356b6d928a5031d84581dfbf90369a074263f1ca Mon Sep 17 00:00:00 2001 From: wangjx <1609724385@qq.com> Date: Sun, 27 Jun 2021 10:32:34 +0800 Subject: [PATCH] =?UTF-8?q?nacos=E6=8C=81=E4=B9=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bootstrap-test.yaml | 39 ++++++++++++++++++- .../src/main/resources/bootstrap.yaml | 39 ++++++++++++++++++- 2 files changed, 76 insertions(+), 2 deletions(-) diff --git a/sentinel-dashboard/src/main/resources/bootstrap-test.yaml b/sentinel-dashboard/src/main/resources/bootstrap-test.yaml index 32927bc3..77c35e93 100644 --- a/sentinel-dashboard/src/main/resources/bootstrap-test.yaml +++ b/sentinel-dashboard/src/main/resources/bootstrap-test.yaml @@ -12,9 +12,46 @@ spring: dashboard: 172.19.192.44:8098 port: 8098 datasource: - - nacos: + #- nacos: + # server-addr: 172.19.42.44:8848 + # data-id: ${spring.application.name}-sentinel-flow + # group-id: DEFAULT_GROUP + # data-type: json + # rule-type: flow + flow: + nacos: server-addr: 172.19.42.44:8848 data-id: ${spring.application.name}-sentinel-flow group-id: DEFAULT_GROUP data-type: json + # 规则类型,取值见: + # org.springframework.cloud.alibaba.sentinel.datasource.RuleType rule-type: flow + degrade: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-degrade + group-id: DEFAULT_GROUP + data-type: json + rule-type: degrade + system: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-system + group-id: DEFAULT_GROUP + data-type: json + rule-type: system + authority: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-authority + group-id: DEFAULT_GROUP + data-type: json + rule-type: authority + param-flow: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-param-flow + group-id: DEFAULT_GROUP + data-type: json + rule-type: param-flow diff --git a/sentinel-dashboard/src/main/resources/bootstrap.yaml b/sentinel-dashboard/src/main/resources/bootstrap.yaml index f49a0693..4e8b5232 100644 --- a/sentinel-dashboard/src/main/resources/bootstrap.yaml +++ b/sentinel-dashboard/src/main/resources/bootstrap.yaml @@ -11,9 +11,46 @@ spring: transport: dashboard: 172.19.192.44:8098 datasource: - - nacos: + #- nacos: + # server-addr: 172.19.42.44:8848 + # data-id: ${spring.application.name}-sentinel-flow + # group-id: DEFAULT_GROUP + # data-type: json + # rule-type: flow + flow: + nacos: server-addr: 172.19.42.44:8848 data-id: ${spring.application.name}-sentinel-flow group-id: DEFAULT_GROUP data-type: json + # 规则类型,取值见: + # org.springframework.cloud.alibaba.sentinel.datasource.RuleType rule-type: flow + degrade: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-degrade + group-id: DEFAULT_GROUP + data-type: json + rule-type: degrade + system: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-system + group-id: DEFAULT_GROUP + data-type: json + rule-type: system + authority: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-authority + group-id: DEFAULT_GROUP + data-type: json + rule-type: authority + param-flow: + nacos: + server-addr: 172.19.42.44:8848 + data-id: ${spring.application.name}-sentinel-param-flow + group-id: DEFAULT_GROUP + data-type: json + rule-type: param-flow \ No newline at end of file