Download the PHP package flagbit/metrics-bundle without Composer
On this page you can find all versions of the php package flagbit/metrics-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flagbit/metrics-bundle
More information about flagbit/metrics-bundle
Files in flagbit/metrics-bundle
Package metrics-bundle
Short Description FlagbitMetricsBundle provides easy integration of metrics collector services for the Symfony Framework
License BSD-3-Clause
Homepage https://github.com/Flagbit/FlagbitMetricsBundle
Informations about the package metrics-bundle
FlagbitMetricsBundle

About
The FlagbitMetricsBundle provides easy integration for the metrics collector library of Bejamin Eberlei into Symfony2.
Installation
Using Composer
Installation with composer:
Register the bundle
Usage
Don't forget that this bundle has a dependency on a Metrics library, which you should first integrate and configure. More information can be found here.
For example, just imagine you want to measure some stats over you application.
Create your MetricProvider
Create your Service
Once you have created your metric provider class, let's go to create the service. In order the metric collector service automatically to collect all the metrics of your metric provider service, you just need to use the "metrics.provider" service tag and select so many collectors as you want.
YAML
XML
Collect your Metrics
You can collect all metrics by yourself and after flush them to your metric servers or use the command that does it for you instead.
It is recommended to inject the services into yours instead of using directly the container.
Command
All versions of metrics-bundle with dependencies
beberlei/metrics Version ^2.0
symfony/framework-bundle Version ^3.4|^4.0