Skip to content

Instantly share code, notes, and snippets.

@tristanbes
Created November 9, 2012 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tristanbes/4046495 to your computer and use it in GitHub Desktop.
Save tristanbes/4046495 to your computer and use it in GitHub Desktop.
StatsDClientBundle installation
// composer.json
"require": {
# ..
"liuggio/statsd-client-bundle": ">=1.2",
# ..
}
// After running php composer.phar update liuggio/statsd-client-bundle
// Enable the Bundle in AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Liuggio\StatsDClientBundle\LiuggioStatsDClientBundle(),
// ...
// Then add the full configuration for the Bundle in app/config/config.yml
liuggio_stats_d_client:
connection:
host: localhost
port: 8125
fail_silently: true
enable_collector: true #default is false
collectors:
liuggio_stats_d_client.collector.dbal: 'collect.query'
liuggio_stats_d_client.collector.visitor: 'collect.visitor'
liuggio_stats_d_client.collector.memory: 'collect.memory'
liuggio_stats_d_client.collector.user: 'collect.user'
liuggio_stats_d_client.collector.exception: 'collect.exception'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment