spring-cloud-alibaba icon indicating copy to clipboard operation
spring-cloud-alibaba copied to clipboard

feat: Add support for sentinel opensergo datasource

Open 123liuziming opened this issue 2 years ago • 2 comments

Describe what this PR does / why we need it

Add out-of-box support for Sentinel OpenSergo data-source.

If you want to use OpenSergo datasource, you can configure the application.yml like NacosDatasource in Spring Cloud Alibaba:

# you can set single rule type by setting enabled-rules, like the other datasource in Spring Cloud Alibaba
spring.cloud.sentinel.datasource.ds5.opensergo.rule-type=flow
spring.cloud.sentinel.datasource.ds5.opensergo.host=127.0.0.1
spring.cloud.sentinel.datasource.ds5.opensergo.port=10246
spring.cloud.sentinel.datasource.ds5.opensergo.namespace=ns1
spring.cloud.sentinel.datasource.ds5.opensergo.app=app1
# you can set multiple rule type by setting enabled-rules
spring.cloud.sentinel.datasource.ds5.opensergo.enabled-rules[0]=flow
spring.cloud.sentinel.datasource.ds5.opensergo.enabled-rules[0]=degrade

Does this pull request fix one issue?

#3075

123liuziming avatar Feb 06 '23 03:02 123liuziming

Could you please provide a sample application.properties config for the Sentinel OpenSergo data-source in the PR description?

sczyh30 avatar Feb 06 '23 08:02 sczyh30

Could you please provide a sample application.properties config for the Sentinel OpenSergo data-source in the PR description?

done

123liuziming avatar Feb 06 '23 08:02 123liuziming