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.
Constructor and Description |
---|
SentinelHealthIndicator(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory,
SentinelProperties sentinelProperties) |
Modifier and Type | Method and Description |
---|---|
protected void |
doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) |
public SentinelHealthIndicator(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory, SentinelProperties sentinelProperties)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.