spring-cloud-alibaba
spring-cloud-alibaba copied to clipboard
feat: Add support for sentinel opensergo datasource
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
Could you please provide a sample application.properties
config for the Sentinel OpenSergo data-source in the PR description?
Could you please provide a sample
application.properties
config for the Sentinel OpenSergo data-source in the PR description?
done