Laravel Packages

Laravel Horizon Prometheus Exporter

Published
Laravel Horizon Prometheus Exporter image

This package allows an easy way to expose your Laravel Horizon Metrics to Prometheus, a scraping service that allows you to easily store and scrape information from your application or server. Prometheus doesn't know about your application, so you'll need an exporter and that is what this package is designed for.

Installation

composer require lkaemmerling/laravel-horizon-prometheus-exporter

Then you can publish the config using:

php artisan vendor:publish --provider=LKDevelopment\\HorizonPrometheusExporter\\HorizonPrometheusExporterServiceProvider

Custom Metrics

After you have it installed and published the config you can add or remove the exporters to suit your needs:

"exporters" => [
CurrentMasterSupervisors::class,
JobsPerMinute::class,
CurrentWorkload::class,
CurrentProccesesPerQueue::class,
FailedJobsPerHour::class,
HorizonStatus::class,
RecentJobs::class
],

For more details on the package visit the GitHub repo

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Sponsored

serpapi logo
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi

The latest

View all →
PayZephyr: One Payment API for Stripe, Paystack, and PayPal image

PayZephyr: One Payment API for Stripe, Paystack, and PayPal

Read article
Bifrost Turns One With AI Builds and New Workflows image

Bifrost Turns One With AI Builds and New Workflows

Read article
Preview Blade Templates in macOS Finder with Quick Blade image

Preview Blade Templates in macOS Finder with Quick Blade

Read article
Artisan Debugging Commands in Laravel Telescope 5.24.0 image

Artisan Debugging Commands in Laravel Telescope 5.24.0

Read article
Queue totalSize() and JobInterrupted Event in Laravel 13.31 image

Queue totalSize() and JobInterrupted Event in Laravel 13.31

Read article
Find Unexpected Test Inputs with Fuzz for Pest image

Find Unexpected Test Inputs with Fuzz for Pest

Read article