连接断路器的状态也在调用应用程序的/health端点中暴露。

{
    "hystrix": {
        "openCircuitBreakers": [
            "StoreIntegration::getStoresByLocationLink"
        ],
        "status": "CIRCUIT_OPEN"
    },
    "status": "UP"
}

英文原文:
13.3 Health Indicator
The state of the connected circuit breakers are also exposed in the /health endpoint of the calling application.

{
“hystrix”: {
“openCircuitBreakers”: [
“StoreIntegration::getStoresByLocationLink”
],
“status”: “CIRCUIT_OPEN”
},
“status”: “UP”
}

分享到: 更多