public class SentinelHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
HealthIndicator for Sentinel, which checks the status of Sentinel Dashboard
and DataSource.
Check the status of Sentinel Dashboard by sending a heartbeat message to it. If return
true, it's OK.
Check the status of Sentinel DataSource by calling loadConfig method of
AbstractDataSource. If no Exception thrown, it's OK.
If Dashboard and DataSource are both OK, the health status is UP.
Note: If Sentinel isn't enabled, the health status is up. If Sentinel Dashboard isn't configured, it's OK and mark the status of Dashboard with UNKNOWN. More informations are provided in details.
| 构造器和说明 |
|---|
SentinelHealthIndicator(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory,
SentinelProperties sentinelProperties) |
public SentinelHealthIndicator(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory,
SentinelProperties sentinelProperties)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.