PHPackages                             tech-djoin/laravel-prometheus - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. tech-djoin/laravel-prometheus

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

tech-djoin/laravel-prometheus
=============================

0.2.8(2y ago)61.6k1MITPHPPHP ^7.4|^8.0

Since May 16Pushed 2y agoCompare

[ Source](https://github.com/tech-djoin/laravel-prometheus)[ Packagist](https://packagist.org/packages/tech-djoin/laravel-prometheus)[ RSS](/packages/tech-djoin-laravel-prometheus/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (13)Used By (0)

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

[](#laravel-prometheus)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b055daf6eaeef4388f1bcc707fce9246b0fedbd5c057e14429461130c4f32eba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746563682d646a6f696e2f6c61726176656c2d70726f6d6574686575732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tech-djoin/laravel-prometheus)[![Total Downloads](https://camo.githubusercontent.com/fbb5b7f249407fc4fc6ef04614a929d73ca88f68ae38cf5093628bc538e94dfa/68747470733a2f2f706f7365722e707567782e6f72672f746563682d646a6f696e2f6c61726176656c2d70726f6d6574686575732f646f776e6c6f616473)](https://packagist.org/packages/tech-djoin/laravel-prometheus)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Laravel Prometheus is a package that allows you to integrate Prometheus, a popular open-source monitoring and alerting toolkit, into your Laravel applications. Prometheus is widely used for monitoring various aspects of software systems, including metrics, time series data, and alerting.

This package uses Redis to do the client side aggregation and also need installed phpredis extension for communication with the Redis key-value store. To install the phpredis extension you can follow link below:

```
https://github.com/phpredis/phpredis/blob/develop/INSTALL.md
```

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

[](#installation)

You can install the package via composer:

```
composer require tech-djoin/laravel-prometheus
```

You can publish the config file with:

```
php artisan vendor:publish --provider="TechDjoin\LaravelPrometheus\PrometheusServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

This packages provides a middleware which can be added as a global middleware or as a single route.

```
// in `app/Http/Kernel.php`

protected $middleware = [
    // ...

    \TechDjoin\LaravelPrometheus\Middleware\MetricCollector::class
];
```

```
// in a routes file

Route::post('/dashboard', function () {
    //
})->middleware(\TechDjoin\LaravelPrometheus\Middleware\MetricCollector::class);
```

Exporting Metrics
-----------------

[](#exporting-metrics)

This package adds a `/metrics` end-point, enabled by default, which exposes all metrics gathered by collectors.

If you would like to protect this end-point, you can add secret value on `LARAVEL_PROMETHEUS_SECRET` in your .env files, and you can only access the end-point using `/metrics/{secret}`

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/MarketingPipeline/README-Quotes/blob/main/LICENSE) file for details.

Contributors
------------

[](#contributors)

[ ![](https://camo.githubusercontent.com/b8f96f7359cc62caadcf3cecea4d80767e5beff47ea5d120e1b6b432837c9532/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d746563682d646a6f696e2f6c61726176656c2d70726f6d657468657573)](https://github.com/tech-djoin/laravel-prometheus/graphs/contributors)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~17 days

Recently: every ~27 days

Total

11

Last Release

920d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0da69678a3e0919b2bb41d7045bc5c664f108266b9a13d9d339a64567ffb5faf?d=identicon)[aryamhrt](/maintainers/aryamhrt)

![](https://www.gravatar.com/avatar/53dae3d0541322e98504aed3af77d3efe7151aaedbe05780e6289ac5be7d7f0f?d=identicon)[Alitindrawan24](/maintainers/Alitindrawan24)

---

Top Contributors

[![Alitindrawan24](https://avatars.githubusercontent.com/u/36658186?v=4)](https://github.com/Alitindrawan24 "Alitindrawan24 (36 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/tech-djoin-laravel-prometheus/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

5712.0M1](/packages/beyondcode-laravel-server-timing)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[label84/laravel-auth-log

Log user authentication actions in Laravel.

3654.0k](/packages/label84-laravel-auth-log)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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