cubesystems/laravel-health-check

Adds Liveness and Readiness Probes in the Laravel application

1.3.0 2022-09-21 11:50 UTC

This package is auto-updated.

Last update: 2024-10-21 15:57:43 UTC


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