Skip to content

elcarlibertoni/CarbonClientServiceProvider

 
 

Repository files navigation

CarbonClientServiceProvider

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%