Download the PHP package yproximite/influxdb-preset-bundle without Composer
On this page you can find all versions of the php package yproximite/influxdb-preset-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yproximite/influxdb-preset-bundle
More information about yproximite/influxdb-preset-bundle
Files in yproximite/influxdb-preset-bundle
Package influxdb-preset-bundle
Short Description InfluxDbPresetBundle: send metrics to InfluxDB server based on Events
License MIT
Informations about the package influxdb-preset-bundle
InfluxDbPresetBundle
InfluxDbPresetBundle: send metrics to InfluxDB server based on Events
Since it relies on the great official influxdb-php library client (via the Symfony bundle) you can configure the latter to benefit from:
- Send multiple metrics at once (batch sending)
- Udp Events (sends the metrics using UDP)
- Http Events (sends the metrics to the InfluxDB API over HTTP)
Both methods (Udp/Http) can also be deferred, meaning you can send the metrics only when kernel.terminate
event is fired in order not to slow your application.
You can read more on the documentation of influxdb-bundle
This bundle is inspired from StatsdBundle
- Installation
- Configuration
- Usage
Installation
Require
yproximite/influxdb-preset-bundle
to your composer.json
file:
Register the bundle in app/AppKernel.php
:
Also, be sure that you followed the configuration procedure for influxdb-bundle since it uses it to take the pre-configured service to communicate with the InfluxDB server.
Configuration
Here is the configuration reference:
Usage
Sending
through events:
using the client:
Listening for events
you can listen each client request through ClientRequestEvent
:
do not forget to add the following code into services.yml
:
You can enable extensions
that will automatically (see configuration example) send the metrics for the memory usage,
how much time the Request/Response
cycle last, the status code of errors and the quantity of page views.
All versions of influxdb-preset-bundle with dependencies
symfony/framework-bundle Version ^5.4 || ^6.0
yproximite/influxdb-bundle Version ^4.0