xmarcos / carbon-client-service-provider
A Silex Service Provider for Carbon (Graphite's backend)
Installs: 4 384
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- silex/silex: ~1.1
- xmarcos/carbon-client: ~0.2
Requires (Dev)
- fabpot/php-cs-fixer: @stable
- phpunit/phpunit: @stable
This package is not auto-updated.
Last update: 2024-10-26 15:54:58 UTC
README
A Silex Service Provider for the Carbon (Graphite's backend) Client.
Installation
{ "require": { "xmarcos/carbon-client-service-provider": "dev-master" } }
Usage
use Silex\Application; use xmarcos\Silex\CarbonClientServiceProvider $app = new Application(); $app->register(new CarbonClientServiceProvider('carbon'), [ 'carbon.params' => [ 'host' => '127.0.0.1', 'port' => 2003, 'transport' => 'udp', 'namespace' => 'some.metric.namespace' ] ]); $app['carbon']->send('some.metric', 1);
License
MIT License