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

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

beberlei/metrics
================

Simple library to talk to metrics collector services.

v2.11.0(5mo ago)3241.2M↓34.2%38[3 issues](https://github.com/beberlei/metrics/issues)[9 PRs](https://github.com/beberlei/metrics/pulls)4MITPHP

Since Jun 2Pushed 5mo ago11 watchersCompare

[ Source](https://github.com/beberlei/metrics)[ Packagist](https://packagist.org/packages/beberlei/metrics)[ RSS](/packages/beberlei-metrics/feed)WikiDiscussions 3.x Synced 3d ago

READMEChangelog (2)DependenciesVersions (24)Used By (4)

Metrics
=======

[](#metrics)

[![Build Status](https://camo.githubusercontent.com/cc156767e349e99ad40b608bc0c121322eb3c881a77d53c027fb80fd2adf0b2a/68747470733a2f2f7472617669732d63692e6f72672f62656265726c65692f6d6574726963732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/beberlei/metrics)

Simple library that abstracts different metrics collectors. I find this necessary to have a consistent and simple metrics API that doesn't cause vendor lock-in.

It also ships with a Symfony Bundle. **This is not a library for displaying metrics.**

Currently supported backends:

- Doctrine DBAL
- Graphite
- InfluxDB
- Telegraf
- Librato
- Logger (Psr\\Log\\LoggerInterface)
- Null (Dummy that does nothing)
- Prometheus
- StatsD
- Zabbix
- DogStatsD

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

[](#installation)

Using Composer:

```
composer require beberlei/metrics
```

API
---

[](#api)

You can instantiate clients:

```
