Health checks

Application health probes let your Laravel app report whether critical dependencies are healthy — database connectivity, disk space, debug mode, Horizon, the scheduler, and more.

Cinder pulls those results over HTTP and shows them on the project's monitoring page. That means you still learn about failures even when the app cannot push notifications itself.

How it fits together

  1. List the probes you want in config/cinder.php (or register them with Cinder::probes([...]) in a service provider).
  2. Schedule php artisan cinder:health every minute so results stay fresh and the scheduler heartbeat stays alive.
  3. Enable the secret-protected endpoint at /cinder/v1/health.
  4. Cinder's Application Health check polls that endpoint using the project's health secret.

Conditions

Each probe reports one condition:

  • Healthy — working as expected (healthy in the JSON response)
  • Degraded — working, but needs attention (degraded)
  • Unhealthy — not working (unhealthy)
  • Errored — the probe itself threw an exception (errored)
  • Not applicable — the probe did not apply, for example Horizon is not installed (not_applicable)

Cinder's Application Health monitor treats unhealthy and errored as failing, and degraded as a warning.

Command exit codes

php artisan cinder:health always exits successfully after it inspects the probes and stores the snapshot, so a degraded probe never fails your scheduler.

Pass --strict when you want a non-zero exit (for example in CI):

php artisan cinder:health --strict

With --strict, the command fails when any probe is degraded, unhealthy or errored. Not-applicable probes never fail the command.

Next steps