Laravel Health
Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel applications.
Laravel Health provides health check endpoints for Kubernetes probes, Prometheus metrics, and general system monitoring. Define checks for your database, Redis, queue, disk, and custom services, then expose them as HTTP endpoints that Kubernetes and monitoring tools understand.
Production Health Monitoring
Kubernetes Probes
Separate endpoints for liveness, readiness, and startup probes. Each probe can run different checks with independent thresholds.
Prometheus Metrics
Health check results exposed as Prometheus gauges. Track check durations, success rates, and failure patterns over time.
Built-in Checks
Database connectivity, Redis availability, queue processing, disk space, and memory usage. Add custom checks with a simple interface.
System Metrics Integration
Uses the System Metrics library for container-aware resource checks. Memory and CPU thresholds respect cgroup limits.
Probe configuration
Each Kubernetes probe type has different requirements. Liveness probes should be fast and only check if the process is alive. Readiness probes should check dependencies (database, cache). Startup probes give slow-starting applications time to initialize. Laravel Health lets you assign different checks to each probe type.
Quick start
composer require cboxdk/laravel-health. Health endpoints are available immediately at /health/liveness, /health/readiness, and /health/startup.