Package

Cboxdk Laravel Health

Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel

Package

cboxdk/laravel-health

View on GitHub →

Health for Laravel

Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel.

Quick Start

composer require cboxdk/laravel-health
php artisan vendor:publish --tag="health-config"
curl http://localhost/health

Features

  • Kubernetes Probes — liveness, readiness, and startup endpoints out of the box
  • Prometheus Metrics — /health/metrics with health check status and system metrics
  • 10 Built-in Checks — database, cache, queue, storage, Redis, environment, schedule, CPU, memory, disk space
  • System Metrics — CPU load, memory, disk, network via cboxdk/system-metrics
  • Container Aware — automatic cgroup detection for Docker/Kubernetes
  • JSON Metrics API — structured system metrics at /health/metrics/json
  • HTML Dashboard — optional real-time status UI
  • Token & IP Auth — protect endpoints with bearer tokens and IP allowlists
  • Response Caching — configurable TTL to reduce check overhead
  • Fully Extensible — implement HealthCheck contract to add custom checks

Requirements

  • PHP 8.3+
  • Laravel 11.x or 12.x

Documentation

Full documentation is available in the docs/ directory.

Testing

composer test
composer analyse
composer format

Credits

License

The MIT License (MIT). Please see License File for more information.

Cboxdk Laravel Health Related Articles

Health for Laravel: Kubernetes Probes and Prometheus Metrics image

Health for Laravel: Kubernetes Probes and Prometheus Metrics

Read article
Laravel Health Status Package image

Laravel Health Status Package

Read article
Laravel Health Panel image

Laravel Health Panel

Read article
How to fix "SQLSTATE[HY000] [2002] Connection refused" Laravel error in GitHub Actions image

How to fix "SQLSTATE[HY000] [2002] Connection refused" Laravel error in GitHub Actions

Read article
New Laravel 11 Apps Include a Health Check Endpoint image

New Laravel 11 Apps Include a Health Check Endpoint

Read article
On Mental Health and Stress image

On Mental Health and Stress

Read article

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift