spatie/laravel-prometheus
Export Laravel app metrics to Prometheus via a /prometheus endpoint. Register custom gauges/counters with simple callbacks, use built-in queue and Horizon metrics, and optionally secure the endpoint. Ideal for scraping by Prometheus and charting in Grafana.
We can export key metrics from Horizon to Prometheus. To enable this feature, uncomment this line in the app/Providers/PrometheusServiceProvider.php file.
$this->registerHorizonCollectors();
This will register the following collectors:
horizon_master_supervisors: exports the number of master supervisors.horizon_current_processes: exports the number of processes currently running per queuehorizon_current_workload: exports the number of jobs currently waiting per queue.horizon_failed_jobs_per_hour jobs: exports the number of failed jobs in the past hourhorizon_status: exports if the Horizon is running, paused, or inactivehorizon_jobs_per_minute: exports the number of jobs processed in the last minutehorizon_recent_jobs: exports the number of recent jobsHow can I help you explore Laravel packages today?