PHPackages                             traum-ferienwohnungen/laravel-prometheus-exporter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. traum-ferienwohnungen/laravel-prometheus-exporter

ActiveLibrary

traum-ferienwohnungen/laravel-prometheus-exporter
=================================================

A prometheus exporter for Laravel &amp; Lumen

0.2.1(5y ago)720.0k↓100%1MITPHPPHP ^7.4

Since Nov 19Pushed 5y ago3 watchersCompare

[ Source](https://github.com/traum-ferienwohnungen/laravel-prometheus-exporter)[ Packagist](https://packagist.org/packages/traum-ferienwohnungen/laravel-prometheus-exporter)[ RSS](/packages/traum-ferienwohnungen-laravel-prometheus-exporter/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (7)Versions (20)Used By (0)

laravel-prometheus-exporter
===========================

[](#laravel-prometheus-exporter)

[![Build Status](https://camo.githubusercontent.com/4df20e8fc9fa94b95c63b6964fe568b369d0ff77fd052c7389b9bcc35128d8d8/68747470733a2f2f7472617669732d63692e6f72672f747261756d2d66657269656e776f686e756e67656e2f6c61726176656c2d70726f6d6574686575732d6578706f727465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/traum-ferienwohnungen/laravel-prometheus-exporter)

A prometheus exporter for the Laravel and the Lumen web framework.

It tracks latency and request counts by request method, route and response code.

Project State
-------------

[](#project-state)

This is unreleased software. I commit backwards incompatible changes without notice.

Installation
------------

[](#installation)

`composer require traum-ferienwohnungen/laravel-prometheus-exporter`

### Adapters

[](#adapters)

Then choose from two storage adapters: APCu is the default option. Redis can also be used.

#### APCu

[](#apcu)

Ensure apcu-bc is installed and enabled.

#### Redis

[](#redis)

Ensure php redis is installed and enabled.

By default it looks for a redis server at localhost:6379. The server can be configured in `config/prometheus_exporter.php`.

### Laravel

[](#laravel)

#### Enable the Middleware

[](#enable-the-middleware)

In `app/Http/Kernel.php`

```
protected $middleware = [
    ...
    \traumferienwohnungen\PrometheusExporter\Middleware\LaravelResponseTimeMiddleware::class,
];

```

#### Add an endpoint for the metrics

[](#add-an-endpoint-for-the-metrics)

```
Route::get('metrics', \traumferienwohnungen\PrometheusExporter\LaravelController::class . '@metrics');

```

### Lumen

[](#lumen)

#### Register the ServiceProvider

[](#register-the-serviceprovider)

In `bootstrap/app.php`

```
$app->register(traumferienwohnungen\PrometheusExporter\LumenServiceProvider::class);

```

#### Add an endpoint for the metrics

[](#add-an-endpoint-for-the-metrics-1)

In `bootstrap/app.php`

```
$app->router->get('metrics', ['as' => 'metrics', 'uses'=> 'traumferienwohnungen\PrometheusExporter\LumenController@metrics']);

```

Configuration
-------------

[](#configuration)

The configuration can be found in `config/prometheus_exporter.php`.

namedescriptionadapterStorage adapter to use: 'apc' or 'redis' default: 'apc'namespacename (prefix) to use in prometheus metrics. default: 'default'namespace\_http\_servername (prefix) to use for http latency in prometheus metrics. default: 'http\_server'redisarray of redis parameters. see prometheus\_exporter.php for details

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 71.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~209 days

Total

15

Last Release

2021d ago

PHP version history (2 changes)0.1.0PHP ^7.1

0.2.0PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/cbe3188b22ec4bfde916a350e3359acbdbe499707720d8129e7087246a5bb025?d=identicon)[traum](/maintainers/traum)

---

Top Contributors

[![tback](https://avatars.githubusercontent.com/u/83432?v=4)](https://github.com/tback "tback (23 commits)")[![schulzp](https://avatars.githubusercontent.com/u/11048?v=4)](https://github.com/schulzp "schulzp (7 commits)")[![anon6789](https://avatars.githubusercontent.com/u/9916570?v=4)](https://github.com/anon6789 "anon6789 (1 commits)")[![triadev](https://avatars.githubusercontent.com/u/10552858?v=4)](https://github.com/triadev "triadev (1 commits)")

---

Tags

laravellumenprometheus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/traum-ferienwohnungen-laravel-prometheus-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/traum-ferienwohnungen-laravel-prometheus-exporter/health.svg)](https://phpackages.com/packages/traum-ferienwohnungen-laravel-prometheus-exporter)
```

###  Alternatives

[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

62538.4k1](/packages/ytake-laravel-fluent-logger)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

99110.2k](/packages/laracrafts-laravel-url-shortener)[triadev/laravel-prometheus-exporter

A laravel and lumen service provider to export metrics for prometheus.

2628.1k1](/packages/triadev-laravel-prometheus-exporter)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
