PHPackages                             spiral/roadrunner-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. spiral/roadrunner-metrics

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

spiral/roadrunner-metrics
=========================

RoadRunner: Prometheus metrics RPC

3.3.0(1y ago)82.3M↓32.2%53MITPHPPHP &gt;=8.1CI failing

Since Jan 21Pushed 1y ago7 watchersCompare

[ Source](https://github.com/roadrunner-php/metrics)[ Packagist](https://packagist.org/packages/spiral/roadrunner-metrics)[ Docs](https://roadrunner.dev/)[ GitHub Sponsors](https://github.com/sponsors/roadrunner-server)[ RSS](/packages/spiral-roadrunner-metrics/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (9)Used By (3)

[   ![](https://github.com/roadrunner-server/.github/assets/8040338/040fb694-1dd3-4865-9d29-8e0748c2c8b8) ](https://roadrunner.dev)RoadRunner Metrics Plugin
=========================

[](#roadrunner-metrics-plugin)

[![PHP Version Require](https://camo.githubusercontent.com/3d36d5c14d0c24c2bc008e801626b935f62f62eb21803069476257e9e8feba5b/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f726f616472756e6e65722d6d6574726963732f726571756972652f706870)](https://packagist.org/packages/spiral/roadrunner-metrics)[![Latest Stable Version](https://camo.githubusercontent.com/1e9351d14dab2f57fad71bf80af80b00b482c0fde7bb4d44d47ab717cdb916c6/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f726f616472756e6e65722d6d6574726963732f76657273696f6e)](https://packagist.org/packages/spiral/roadrunner-metrics)[![phpunit](https://github.com/spiral/roadrunner-metrics/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/roadrunner-metrics/actions)[![psalm](https://github.com/spiral/roadrunner-metrics/actions/workflows/psalm.yml/badge.svg)](https://github.com/spiral/roadrunner-metrics/actions)[![Total Downloads](https://camo.githubusercontent.com/9ca18c4fe0b74b12b0be3969fc6caa05dfdfced0bd695dded7de5b48c496a0f4/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f726f616472756e6e65722d6d6574726963732f646f776e6c6f616473)](https://packagist.org/packages/spiral/roadrunner-metrics)

This repository contains the codebase PHP bridge using RoadRunner Metrics plugin.

Installation:
-------------

[](#installation)

To install RoadRunner extension:

```
composer require spiral/roadrunner-metrics
```

You can use the convenient installer to download the latest available compatible version of RoadRunner assembly:

```
composer require spiral/roadrunner-cli --dev
vendor/bin/rr get
```

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

[](#configuration)

Enable metrics service in your `.rr.yaml` file:

```
rpc:
    listen: tcp://127.0.0.1:6001

server:
    command: "php worker.php"

http:
    address: "0.0.0.0:8080"

metrics:
    address: "0.0.0.0:2112"
```

Usage
-----

[](#usage)

To publish metrics from your application worker:

```
