cboxdk/
laravel-health
g4t.io

Health for Laravel: Kubernetes Probes and Prometheus Metrics

30 views 23 stars by Paul Redmond

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

cbox health health-check kubernetes laravel metrics monitoring prometheus
README from cboxdk/laravel-health Open on GitHub →

Health for Laravel

Latest Version on Packagist GitHub Tests Action Status PHPStan Total Downloads PHP Version Laravel Version

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 the HealthCheck contract to add checks, or rebind RunsHealthChecks to replace the runner
  • Test Helpers — InteractsWithHealth and FakeHealthCheckRunner to test your endpoints without real checks
  • No External Assets — the dashboard ships its own CSS; nothing is loaded from a CDN

Requirements

  • PHP 8.4+
  • Laravel 12.x or 13.x

Documentation

Full documentation is available in the docs/ directory. Upgrading from 2.x? Read UPGRADING.md.

Development

composer qa        # code style, PHPStan (level max), tests, license check, audit
composer test
composer analyse
composer format

Security

Please report vulnerabilities privately; see SECURITY.md.

Credits

License

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

More from the ecosystem

durable-workflow/
workflow
g4t.io
9 1,292

Durable Workflow: Long-Running Workflows for Laravel

Embedded durable workflow runtime and orchestration engine for Laravel applications.

durable-workflow/workflow via Laravel News
packstub/
session-replay
g4t.io
14 52

Session Replay for Laravel: Self-Hosted Browser Recordings

Session replay for Laravel: record what a person did in the browser with rrweb, keep the recording on your own disk and database, and watch it behind a gate you define — masked inputs by default, errors, failed Livewire requests and web vitals marked on the timeline, a link to the replay in every log line. packstub/filament-session-replay adds the sessions to a Filament panel.

packstub/session-replay via Laravel News
cyberwizard-dev/
schedule-catchup
g4t.io
17

Replay Missed Laravel Scheduled Tasks With Schedule Catchup

Schedule Catchup replays missed Laravel scheduled tasks after downtime, with opt-in recovery, bounded retries, and access to the original scheduled date.

cyberwizard-dev/schedule-catchup via Laravel News