Skip to content

Disk Space Check

Disk Space Check

Reads all mount points and reports critical when any exceeds the usage threshold.

Configuration

'thresholds' => [
    'disk_space_percent' => 90,
],

Usage

use Cbox\LaravelHealth\Checks\DiskSpaceCheck;

'checks' => [
    'readiness' => [
        DiskSpaceCheck::class,
    ],
],

Behavior

  • Reads storage metrics for all mount points via cboxdk/system-metrics
  • Returns critical when any mount point exceeds disk_space_percent
  • Metadata: threshold, critical_mounts (list of mounts exceeding threshold)