@Health @ApplicationScoped public final class DiskSpaceHealthCheck extends java.lang.Object implements HealthCheck
healthCheck.diskSpace.path property, and the healthCheck.diskSpace.thresholdPercent
property. The threshold should be set to a fraction, such as .50 for 50% or .99 for 99%. If disk usage
exceeds this threshold, then the health check will fail.
Unless ephemeral disk space is being used, it is often not sufficient to simply restart a server in the event
that that health check fails.
This health check is automatically created and registered through CDI.
This health check can be referred to in properties as "diskSpace". So for example, to exclude this
health check from being exposed, use "helidon.health.exclude: diskSpace".| Modifier and Type | Method and Description |
|---|---|
HealthCheckResponse |
call() |
public HealthCheckResponse call()
call in interface HealthCheckCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.