PHPackages                             lushdigital/microservice-metrics - 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. [Framework](/categories/framework)
4. /
5. lushdigital/microservice-metrics

ActiveLibrary[Framework](/categories/framework)

lushdigital/microservice-metrics
================================

Prometheus style metrics for microservices building on the official library

v1.0.0(7y ago)223MITPHPPHP &gt;=5.6.4

Since Jul 24Pushed 7y ago4 watchersCompare

[ Source](https://github.com/LUSHDigital/microservice-metrics)[ Packagist](https://packagist.org/packages/lushdigital/microservice-metrics)[ RSS](/packages/lushdigital-microservice-metrics/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Lush Digital - Micro Service Metrics
====================================

[](#lush-digital---micro-service-metrics)

The Library provides Prometheus style metrics to scrape.

Dependencies
------------

[](#dependencies)

It requires a redis instance running with REDIS\_HOST environment variable pointing to it.

Description
-----------

[](#description)

In the middleware RED metrics are being captured, however you are free to implement your own custom metrics just by registering the them with an instance of CollectorRegistry.(for simplicity it is set as a singleton in the IoC) At display time new metrics will be discovered from Redis, but be aware if you change the definition for a metric, it needs to be purged from Redis.

Package Contents
----------------

[](#package-contents)

- Terminable Middleware
- Route + Controller

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

[](#installation)

Install the package as normal:

```
$ composer require lushdigital/microservice-metrics
```

Register the service provider with Lumen in the `bootstrap/app.php` file:

```
$app->register(LushDigital\MicroServiceMetrics\MetricsServiceProvider::class);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

2

Last Release

2812d ago

Major Versions

v0.9.0 → v1.0.02018-08-28

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/b002a9bba3fdfe2547d930c380b9d89dccf2fffc8fa7b7dca92463f95e486e05?d=identicon)[Lush Dev](/maintainers/Lush%20Dev)

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

---

Tags

frameworklaravellumenredisMetricsprometheusMicroservice

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lushdigital-microservice-metrics/health.svg)

```
[![Health](https://phpackages.com/badges/lushdigital-microservice-metrics/health.svg)](https://phpackages.com/packages/lushdigital-microservice-metrics)
```

###  Alternatives

[lushdigital/microservice-core

A set of core functionality and convenience classes for a Lumen microservice.

105.5k](/packages/lushdigital-microservice-core)

PHPackages © 2026

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