canaltp/sam-monitoring
Laravel package for monitoring and tracking application health and activity, providing status checks, metrics, and alerts to help detect issues early and keep services running smoothly.
job:failed, http:down).if (fail) log() checks with structured monitoring.curl, mbstring for HTTP checks).composer require canaltp/sam-monitoring..env or service provider bindings.config/monitoring.php or via code.SamMonitoring::check('api.orders')
->url('https://api.example.com/orders')
->expectedStatus(200)
->notifyOnFailure();
job:failed).event(new JobFailed($job));
// Package listens for this event and logs/alerts.
try-catch blocks.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package stops updating | Monitoring gaps, undetected failures | Fork the repo or switch to a maintained alternative. |
| Database connection fails | Lost historical data | Use an external store (e.g., Redis) or backup DB. |
| Alert storms | Team burnout, ignored alerts | Implement alert throttling or severity tiers. |
| Check logic errors | False positives/negatives | Unit test check configurations. |
| Laravel queue failures | Async checks not executed | Fallback to sync checks or monitor queue health. |
- name: Test Monitoring Checks
run: php artisan monitoring:test
How can I help you explore Laravel packages today?