dekalee / statsd-swarrot-bundle
使用 swarrot 发送数据到 statsd 的处理器
v1.0.1
2017-03-20 10:14 UTC
Requires
- domnikl/statsd: ~2.0
- swarrot/swarrot-bundle: ~1
This package is auto-updated.
Last update: 2024-09-12 03:36:10 UTC
README
此包将提供一个处理器,在事件处理期间使用 swarrot 库将一些统计信息发送到 statsd。
安装
使用 composer 安装此包
composer require dekalee/statsd-swarrot-bundle
在 AppKernel.php
文件中激活它
new Dekalee\StatsdSwarrotBundle\DekaleeStatsdSwarrotBundle(),
配置
在你的 config.yml
文件中,你可以添加一个中间件处理器,它将发送一些计时器和计数器指标到你的 statsd 实例
swarrot: consumers: tag: processor: foo.processor middleware_stack: - configurator: dekalee_statsd_swarrot.processor.statsd_timer extras: statsd_namespace: timer_foo statsd_host: 127.0.0.1 statsd_port: 8215 - configurator: dekalee_statsd_swarrot.processor.statsd_counter extras: statsd_namespace: counter_foo statsd_counter: foo_count statsd_host: 127.0.0.1 statsd_port: 8215