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.4.0(2mo ago)61.7k1MITPHPPHP ^7.4|^8.0CI passing

Since May 16Pushed 2mo 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 today

READMEChangelog (10)Dependencies (10)Versions (15)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

43

—

FairBetter than 89% of packages

Maintenance85

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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 ~88 days

Recently: every ~251 days

Total

13

Last Release

76d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/122443303?v=4)[Arya Maharta](/maintainers/aryamhrt)[@aryamhrt](https://github.com/aryamhrt)

![](https://avatars.githubusercontent.com/u/36658186?v=4)[Alit Indrawan ](/maintainers/Alitindrawan24)[@Alitindrawan24](https://github.com/Alitindrawan24)

---

Top Contributors

[![Alitindrawan24](https://avatars.githubusercontent.com/u/36658186?v=4)](https://github.com/Alitindrawan24 "Alitindrawan24 (40 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

87512.0M162](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6225.3M621](/packages/illuminate-log)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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