rstgroup/statsd-module
最新稳定版本:1.3.0
Composer 安装命令:
composer require rstgroup/statsd-module
包简介
Statsd module for ZF2/ZF3
README 文档
README
Module is based on domnikl/statsd-php.
Installation
Using composer:
composer require rstgroup/statsd-module
Configuration
In your Zend Framework application config add to module list
return [ 'modules' => [ 'RstGroup\\StatsdModule', ], ];
also in your autoload config based on enviroment add statsd client configuration
return [ 'statsd' => [ 'tcp' => [ 'host' => 'example_host', 'port' => example_port, 'timeout' => null, 'persistent' => false, 'mtu' => 1500, ], 'udp' => [ 'host' => 'example_host', 'port' => example_port, 'timeout' => null, 'persistent' => false, 'mtu' => 1500, ], 'namespace' => 'services.default', 'connectionType' => 'RstGroup\Statsd\Connection\Blackhole', ], ];
Connection types:
RstGroup\Statsd\Connection\UdpRstGroup\Statsd\Connection\Tcperrors will not be suppressed in this modeRstGroup\Statsd\Connection\Memoryin this mode sending is disabled, but messages are collectedRstGroup\Statsd\Connection\Blackholein this mode sending is disabled
Usage
Typical usage from ServiceManager
$client = $serviceManager->get("RstGroup\Statsd\Client");
统计信息
- 总下载量: 71.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-03-02