A Silex Service Provider for the Carbon (Graphite's backend) Client.
{
"require": {
"xmarcos/carbon-client-service-provider": "dev-master"
}
}
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);
MIT License