PHPackages                             artprima/prometheus-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. artprima/prometheus-metrics-bundle

ActiveSymfony-bundle

artprima/prometheus-metrics-bundle
==================================

Symfony 5/6/7/8 Prometheus Metrics Bundle

1.21.0(4mo ago)1723.7M—5.4%41[5 issues](https://github.com/artprima/prometheus-metrics-bundle/issues)[2 PRs](https://github.com/artprima/prometheus-metrics-bundle/pulls)2MITPHPPHP ^8.1CI passing

Since Oct 20Pushed 2mo ago7 watchersCompare

[ Source](https://github.com/artprima/prometheus-metrics-bundle)[ Packagist](https://packagist.org/packages/artprima/prometheus-metrics-bundle)[ RSS](/packages/artprima-prometheus-metrics-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (11)Versions (27)Used By (2)

[Master](https://github.com/artprima/prometheus-metrics-bundle/tree/master)[![Build Status](https://github.com/artprima/prometheus-metrics-bundle/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/artprima/prometheus-metrics-bundle/actions?query=workflow%3APHP+branch%3Amaster)[![Build Status](https://github.com/artprima/prometheus-metrics-bundle/actions/workflows/symfony.yml/badge.svg?branch=master)](https://github.com/artprima/prometheus-metrics-bundle/actions?query=workflow%3APHP+branch%3Amaster)[![Build Status](https://github.com/artprima/prometheus-metrics-bundle/actions/workflows/code-style.yml/badge.svg?branch=master)](https://github.com/artprima/prometheus-metrics-bundle/actions?query=workflow%3APHP+branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/f39d9f7405b5bb2ea3ca8946f9284a3ef3113bb2e1c6d7b7b323ab30ce3fd578/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6172747072696d612f70726f6d6574686575732d6d6574726963732d62756e646c652f6d61737465722e737667)](https://codecov.io/gh/artprima/prometheus-metrics-bundle)Symfony 5/6/7/8 Prometheus Metrics Bundle
=========================================

[](#symfony-5678-prometheus-metrics-bundle)

A Symfony bundle for the `promphp/prometheus_client_php`.

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

[](#installation)

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require artprima/prometheus-metrics-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require artprima/prometheus-metrics-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
