PHPackages                             mtxserv/metric-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. mtxserv/metric-bundle

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

mtxserv/metric-bundle
=====================

Add influxdb metrics in your sf2 app

0.0.3(10y ago)013.7kMITPHPPHP &gt;=5.5

Since Jan 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/sdieunidou/MetricBundle)[ Packagist](https://packagist.org/packages/mtxserv/metric-bundle)[ Docs](https://github.com/sdieunidou/MetricBundle)[ RSS](/packages/mtxserv-metric-bundle/feed)WikiDiscussions master Synced 4w ago

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

MetricBundle
============

[](#metricbundle)

Really simple bundle to add metrics with InfluxDB in your Symfony2 application.

Installation
============

[](#installation)

```
composer require mtxserv/metric-bundle

```

Configuration
=============

[](#configuration)

Add in `config_prod.yml`

```
metric:
    host: %app_metric_host%
    port: %app_metric_port% # UDP port
    enable_collector: true  # set true to collect data (request, execution time, memory, ..)

```

Usage
=====

[](#usage)

```
$this->get('metric')->add('app_queue', [
    'value'     => 1,
]);

```

Increment serie
---------------

[](#increment-serie)

```
$this->get('metric')->decrement('app_queue');

```

Decrement serie
---------------

[](#decrement-serie)

```
$this->get('metric')->increment('app_queue');

```

Timing serie
------------

[](#timing-serie)

```
$this->get('metric')->timing('app_queue', time());

```

Measure serie
-------------

[](#measure-serie)

```
$this->get('metric')->measure('app_queue', 10.0);

```

Add tags
--------

[](#add-tags)

An third argument is available on all methods to add tags.

Example:

```
$this->get('metric')->add('app_queue', [
    'value'     => 1,
], [
    'region' => 'eu',
]);

```

Data Collector
==============

[](#data-collector)

To enable data collector (send on kernel.terminate event), set to true the enable\_collector flag.

```
metric:
    enable_collector: true # set true to collect data (request, execution time, memory, ..)

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

3812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/077eba6702dc23a795ee2262dff92505e3c8ead08f7cb205be80d8aae0a6b8e5?d=identicon)[sdieunidou](/maintainers/sdieunidou)

---

Top Contributors

[![sdieunidou](https://avatars.githubusercontent.com/u/570763?v=4)](https://github.com/sdieunidou "sdieunidou (15 commits)")

---

Tags

symfonybundleinfluxdb

### Embed Badge

![Health badge](/badges/mtxserv-metric-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mtxserv-metric-bundle/health.svg)](https://phpackages.com/packages/mtxserv-metric-bundle)
```

###  Alternatives

[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k3](/packages/web-auth-webauthn-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

65474.5k9](/packages/web-auth-webauthn-symfony-bundle)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2836.4k9](/packages/inspector-apm-inspector-symfony)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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