netolabs/openmetrics-bundle

Symfony bundle for exporting application telemetry from your application to Prometheus

v1.0.0 2020-11-05 07:34 UTC

This package is auto-updated.

Last update: 2024-04-05 15:07:36 UTC


README

Symfony bundle for exporting application telemetry from your application to Prometheus.

Installation

Download the bundle

composer require netolabs/openmetrics-bundle

Add the bundle to your AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Neto\OpenmetricsBundle\NetoOpenmetricsBundle(),
        );
    }
}

Add the configuration to config.yml

neto_openmetrics:
    namespace: neto_ecommerce
    ignored_routes: []

Add the routes.yml for your /metrics endpoint

neto_openmetrics:
    resource: '@NetoOpenmetricsBundle/Resources/config/routes.yml'
    prefix: /