spatie/statamic-health
Statamic addon that integrates Spatie Laravel Health to monitor your app with configurable checks (e.g., disk space). View health status in the control panel and get notifications via mail or Slack when checks warn or fail.
Health::checks()), enabling composable, pluggable monitoring. This aligns well with Laravel’s service provider pattern and dependency injection./health endpoint). A TPM should:
UsedDiskSpaceCheck).composer require spatie/statamic-health.AppServiceProvider (or a dedicated HealthServiceProvider)./health endpoint locally.StatamicEntriesCheck).spatie/laravel-health as a fallback).| Phase | Task | Owner | Dependencies |
|---|---|---|---|
| Discovery | Audit current monitoring tools. | TPM/Dev | N/A |
| Setup | Install package, configure checks. | Dev | Composer, Statamic setup |
| Testing | Validate /health endpoint and alerts. |
QA/Dev | Local Statamic instance |
| Integration | Connect to alerting systems (e.g., Slack). | Dev/Ops | Notification channels |
| Customization | Build Statamic-specific checks if needed. | Dev | Statamic API knowledge |
| Documentation | Update runbooks for health check thresholds. | TPM/Tech Writer | Check configurations |
spatie/laravel-health + custom Statamic checks./health.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package incompatibility | Health checks fail silently. | Test against target Statamic version. |
| False positives (e.g., disk) | Noise in alerts. | Tune thresholds; add confirmation steps. |
| Notification system down | Alerts fail to trigger. | Fallback to log-based alerts. |
| Statamic upgrade breaks checks | Health monitoring fails. | Fork and patch; test thoroughly. |
How can I help you explore Laravel packages today?