cubesystems / laravel-health-check
Adds Liveness and Readiness Probes in the Laravel application
Installs: 11 490
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 2
Open Issues: 0
Requires
- illuminate/bus: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/console: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/database: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/queue: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/routing: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/support: ~5.0|~6.0|~7.0|~8.0|~9.0
README
Usage
Require the package using composer:
composer require cubesystems/laravel-health-check
Using the health checks
You can set your monitoring system to ping the liveness and readiness URLs or CLI to get alerted if there are any problems.
In Kubernetes and OpenShift you can use the probes also for container health checks.
Liveness Probes
{APP_URL}/health-check/liveness
Liveness probe will respond with http 200 status code if the service functions without problems.
Readiness Probe
{APP_URL}/health-check/readiness
Readiness probe will respond with http 200 status code if the service is up and functions without problems.
Scheduler Liveness Probe
php artisan healthcheck:check scheduler
Queue Liveness Probe
php artisan healthcheck:check queue