netolabs / openmetrics-bundle
Symfony bundle for exporting application telemetry from your application to Prometheus
Installs: 6 859
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- ext-apcu: *
- doctrine/dbal: ^2.6
- endclothing/prometheus_client_php: ^1.0
- symfony/config: ^3.4|^4.0|^5.0
- symfony/dependency-injection: ^3.4|^4.0|^5.0
- symfony/http-kernel: ^3.4|^4.0|^5.0
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: /