1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

update sentinel examples and metadata info to support new configurations of sentinel

This commit is contained in:
fangjian0423 2018-09-27 14:32:08 +08:00
parent 117f4f70c6
commit 7c1699dcd8
4 changed files with 43 additions and 10 deletions

View File

@ -78,7 +78,7 @@
``` ```
spring.application.name=sentinel-example spring.application.name=sentinel-example
server.port=18083 server.port=18083
spring.cloud.sentinel.dashboard=localhost:8080 spring.cloud.sentinel.transport.dashboard=localhost:8080
``` ```
2. 启动应用,支持 IDE 直接启动和编译打包后启动。 2. 启动应用,支持 IDE 直接启动和编译打包后启动。

View File

@ -66,7 +66,7 @@ Before we start the demo, let's learn how to connect Sentinel to a Spring Cloud
spring.application.name=sentinel-example spring.application.name=sentinel-example
server.port=18083 server.port=18083
spring.cloud.sentinel.dashboard=localhost:8080 spring.cloud.sentinel.transport.dashboard=localhost:8080
2. Start the application in IDE or by building a fatjar. 2. Start the application in IDE or by building a fatjar.

View File

@ -1,8 +1,8 @@
spring.application.name=sentinel-example spring.application.name=sentinel-example
server.port=18083 server.port=18083
management.endpoints.web.exposure.include=* management.endpoints.web.exposure.include=*
spring.cloud.sentinel.port=8721 spring.cloud.sentinel.transport.port=8721
spring.cloud.sentinel.dashboard=localhost:8080 spring.cloud.sentinel.transport.dashboard=localhost:8080

View File

@ -7,26 +7,59 @@
"description": "enable or disable sentinel auto configure." "description": "enable or disable sentinel auto configure."
}, },
{ {
"name": "spring.cloud.sentinel.port", "name": "spring.cloud.sentinel.eager",
"type": "java.lang.Boolean",
"defaultValue": false,
"description": "earlier initialize heart-beat when the spring container starts when the transport dependency is on classpath, the configuration is effective."
},
{
"name": "spring.cloud.sentinel.charset",
"type": "java.lang.String",
"defaultValue": "UTF-8",
"description": "charset when sentinel write or search metric file."
},
{
"name": "spring.cloud.sentinel.transport.port",
"type": "java.lang.String", "type": "java.lang.String",
"defaultValue": "8721", "defaultValue": "8721",
"description": "sentinel api port." "description": "sentinel api port."
}, },
{ {
"name": "spring.cloud.sentinel.dashboard", "name": "spring.cloud.sentinel.transport.dashboard",
"type": "java.lang.String", "type": "java.lang.String",
"description": "sentinel dashboard address, won't try to connect dashboard when address is empty." "description": "sentinel dashboard address, won't try to connect dashboard when address is empty."
}, },
{
"name": "spring.cloud.sentinel.transport.heartbeatIntervalMs",
"type": "java.lang.String",
"description": "send heartbeat interval millisecond."
},
{ {
"name": "spring.cloud.sentinel.filter.order", "name": "spring.cloud.sentinel.filter.order",
"type": "java.lang.Integer", "type": "java.lang.Integer",
"defaultValue": "Integer.MIN_VALUE", "defaultValue": "Integer.MIN_VALUE",
"description": "Sentinel filter chain order, will be set to FilterRegistrationBean." "description": "sentinel filter chain order, will be set to FilterRegistrationBean."
}, },
{ {
"name": "spring.cloud.sentinel.filter.urlPatterns", "name": "spring.cloud.sentinel.metric.fileSingleSize",
"type": "java.util.List", "type": "java.lang.String",
"description": "URL pattern for Sentinel filter, default contains '/*'." "description": "the metric file size."
},
{
"name": "spring.cloud.sentinel.metric.fileTotalCount",
"type": "java.lang.String",
"description": "the total metric file count."
},
{
"name": "spring.cloud.sentinel.servlet.blockPage",
"type": "java.lang.String",
"description": "the process page when the flow control is triggered."
},
{
"name": "spring.cloud.sentinel.flow.coldFactor",
"type": "java.lang.String",
"defaultValue": "3",
"description": "sentinel the cold factor."
} }
] ]
} }