Created
November 9, 2012 16:02
-
-
Save tristanbes/4046495 to your computer and use it in GitHub Desktop.
StatsDClientBundle installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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