承接 rstgroup/statsd-module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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\Udp
  • RstGroup\Statsd\Connection\Tcp errors will not be suppressed in this mode
  • RstGroup\Statsd\Connection\Memory in this mode sending is disabled, but messages are collected
  • RstGroup\Statsd\Connection\Blackhole in this mode sending is disabled

Usage

Typical usage from ServiceManager

$client = $serviceManager->get("RstGroup\Statsd\Client");

统计信息

  • 总下载量: 71.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 5
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-03-02