xmarcos/carbon-client-service-provider

A Silex Service Provider for Carbon (Graphite's backend)

0.2.0 2015-01-08 00:31 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:20:27 UTC


README

Build Status Coverage Status Quality Score Latest Version Software License Total Downloads SensioLabsInsight

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