PHPackages                             itk-dev/metrics-bundle - 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. itk-dev/metrics-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

itk-dev/metrics-bundle
======================

Provide metrics for prometheus

1.1.0(2y ago)012.1k↓92.9%MITPHPPHP ^8.1|^8.2|^8.3

Since Oct 19Pushed 1y ago3 watchersCompare

[ Source](https://github.com/itk-dev/metrics-bundle)[ Packagist](https://packagist.org/packages/itk-dev/metrics-bundle)[ RSS](/packages/itk-dev-metrics-bundle/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (7)Versions (6)Used By (0)

ITK development Metrics bundle
==============================

[](#itk-development-metrics-bundle)

This bundle is a wrapper for Symfony to make it a little easier to expose metrics for Prometheus.

It has support for exporting Opcache and APCu metrics as well as custom metrics for you application.

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

[](#configuration)

There are support for storing metrics information in 3 different storage adaptors. The default recommendation is to use Redis as it's persistent across reboots. So you will not miss any data if Prometheus scraper have not collection data.

Default configuration:

```
itkdev_metrics:
  # Prefix exported metrics (should be application name)
  namespace: ItkDevApp

  # Storage adapter to use
  adapter:
    type: redis # One of "apcu"; "memory"; "redis"

    # Connection options is only used by redis adapter
    options:
      host: 127.0.0.1
      port: 6379
      password: ~

  # Export metrics for these extensions
  extensions:
    opcache: false
    apcu: false
```

Route
-----

[](#route)

The bundle exposes the route `/metrics` which can be prefixed by creating a route file under `config/routes` if the path is already in use.

```
itkdev_metrics:
  prefix: '/custom/path/prefix'
  resource: '@ItkDevMetricsBundle/Resources/config/routes.xml'
```

Service
-------

[](#service)

The bundle comes with a single public service `MetricsService` that can be used to collection custom metrics. It supports the standard metrics support by Prometheus (counter, gauge, histogram). See the function documentation about the different between them and how to use them.

For more information also see: [https://prometheus.io/docs/concepts/metric\_types/](https://prometheus.io/docs/concepts/metric_types/)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 88% 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 ~283 days

Total

4

Last Release

869d ago

Major Versions

0.0.1 → 1.0.02022-07-06

PHP version history (3 changes)0.0.1PHP ^7.4|^8.0|^8.1

1.0.0PHP ^8.1

1.1.0PHP ^8.1|^8.2|^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33924554?v=4)[ITK Development](/maintainers/itk-dev)[@itk-dev](https://github.com/itk-dev)

---

Top Contributors

[![cableman](https://avatars.githubusercontent.com/u/111397?v=4)](https://github.com/cableman "cableman (22 commits)")[![jekuaitk](https://avatars.githubusercontent.com/u/78410897?v=4)](https://github.com/jekuaitk "jekuaitk (3 commits)")

---

Tags

observibilityphpprometheus

###  Code Quality

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/itk-dev-metrics-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/itk-dev-metrics-bundle/health.svg)](https://phpackages.com/packages/itk-dev-metrics-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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