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