Class DiskSpaceHealthIndicator

java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.springframework.boot.actuate.system.DiskSpaceHealthIndicator
All Implemented Interfaces:
HealthContributor, HealthIndicator

public class DiskSpaceHealthIndicator extends AbstractHealthIndicator
A HealthIndicator that checks available disk space and reports a status of Status.DOWN when it drops below a configurable threshold.
Since:
2.0.0
Author:
Mattias Severson, Andy Wilkinson, Stephane Nicoll
  • Constructor Details

    • DiskSpaceHealthIndicator

      public DiskSpaceHealthIndicator(File path, DataSize threshold)
      Create a new DiskSpaceHealthIndicator instance.
      Parameters:
      path - the Path used to compute the available disk space
      threshold - the minimum disk space that should be available
  • Method Details