Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cubesystems/laravel-health-check
https://github.com/cubesystems/laravel-health-check
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cubesystems/laravel-health-check
- Owner: cubesystems
- Created: 2020-10-01T11:19:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-21T11:51:39.000Z (over 2 years ago)
- Last Synced: 2024-09-18T13:12:56.384Z (4 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 4
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Health Check for Laravel
## 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`