Using this package you can monitor the health of your application by registering one of the available checks.
Here's an example where we'll monitor used disk space.
// typically, in a service provideruseSpatie\Health\Facades\Health;useSpatie\Health\Checks\Checks\UsedDiskSpaceCheck;Health::checks([UsedDiskSpaceCheck::new()->warnWhenUsedSpaceIsAbovePercentage(70)->failWhenUsedSpaceIsAbovePercentage(90);]);
When the used disk space is over 70%, then a notification with a warning will be sent. If it's above 90%, you'll get an error notification. Out of the box, the package can notify you via mail and Slack.