spatie/laravel-health
Monitor your Laravel app’s health by registering checks (disk space, etc.) with warning/fail thresholds. Get notified via mail or Slack when checks degrade, and extend with custom checks for proactive alerting.
Whenever one of the checks fails, the package can send you a notification. A notification will be sent for all checks that send a message in their result.
Out of the box, the notification can be sent:
These notifications are throttled, so you don't get overwhelmed with notifications when something goes wrong. By default, you'll only get one notification per hour.
In the throttle_notifications_for_minutes key of the health config file, you can customize the length of the throttling period.
By default, notifications are sent for both warning and failed check results. If you want to receive notifications only when checks have a failed status (ignoring warnings), you can enable the only_on_failure option in the health config file:
// in config/health.php
'notifications' => [
'enabled' => true,
'only_on_failure' => true, // only notify on failed checks, ignore warnings
// ...
],
How can I help you explore Laravel packages today?