traum-ferienwohnungen/laravel-prometheus-exporter
Larablocks Analysis
traum-ferienwohnungen/laravel-prometheus-exporter works with Laravel 6 (latest release 0.2.1, Sep 8, 2020), which reached end of life on Sep 6, 2022: no more fixes, even for security.
Laravel 5 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 6, past end of life since Sep 6, 2022
- No release in the last 12 months (last: Sep 8, 2020)
- 3 downloads a month (needs 10,000)
- 7 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Sep 8, 2020.
- No releases in the last 12 months.
- First released: Nov 19, 2016.
- Monthly downloads: 3, down 75% from six months ago.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require traum-ferienwohnungen/laravel-prometheus-exporter |
|
| Latest Version: | 0.2.1 |
| PHP: | ^7.4 |
| Laravel: | 6 |
| Older releases: | 5 |
| License: | MIT |
| Last Updated: | Sep 8, 2020 |
| Links: | GitHub · Packagist |
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
This is unreleased software. I commit backwards incompatible changes without notice.
Installation
composer require traum-ferienwohnungen/laravel-prometheus-exporter
Adapters
Then choose from two storage adapters: APCu is the default option. Redis can also be used.
APCu
Ensure apcu-bc is installed and enabled.
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
Enable the Middleware
In app/Http/Kernel.php
protected $middleware = [
...
\traumferienwohnungen\PrometheusExporter\Middleware\LaravelResponseTimeMiddleware::class,
];
Add an endpoint for the metrics
Route::get('metrics', \traumferienwohnungen\PrometheusExporter\LaravelController::class . '@metrics');
Lumen
Register the ServiceProvider
In bootstrap/app.php
$app->register(traumferienwohnungen\PrometheusExporter\LumenServiceProvider::class);
Add an endpoint for the metrics
In bootstrap/app.php
$app->router->get('metrics', ['as' => 'metrics', 'uses'=> 'traumferienwohnungen\PrometheusExporter\LumenController@metrics']);
Configuration
The configuration can be found in config/prometheus_exporter.php.
| name | description |
|---|---|
| adapter | Storage adapter to use: 'apc' or 'redis' default: 'apc' |
| namespace | name (prefix) to use in prometheus metrics. default: 'default' |
| namespace_http_server | name (prefix) to use for http latency in prometheus metrics. default: 'http_server' |
| redis | array of redis parameters. see prometheus_exporter.php for details |
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.2.1 | ^7.4 | ^6 | MIT | |
| 0.2.0 | ^7.4 | ^6 | MIT | |
| 0.1.2 | ^7.1 | ^5.6 | MIT | |
| 0.1.1 | ^7.1 | ^5.6 | MIT | |
| 0.1.0 | ^7.1 | ^5.6 | MIT | |
| 0.0.9 | ^5.6 | MIT | ||
| 0.0.8 | ^5.3 | MIT | ||
| 0.0.7 | ^5.3 | MIT | ||
| 0.0.6 | ^5.3 | MIT | ||
| 0.0.5 | ^5.3 | MIT | ||
| 0.0.4 | ^5.3 | MIT | ||
| 0.0.3 | ^5.3 | MIT | ||
| 0.0.2 | ^5.3 | MIT | ||
| 0.0.1 | ^5.3 | MIT |