承接 trademachines/riemann-client-php 相关项目开发

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

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

trademachines/riemann-client-php

最新稳定版本:1.2.0

Composer 安装命令:

composer require trademachines/riemann-client-php

包简介

PHP Client for riemann

README 文档

README

Build Status

Simple PHP client for Riemann

Usage

$socket = new UdpSocket('127.0.0.1', 5555);
// To use a tcp socket:
// $socket = new TcpSocket('127.0.0.1', 5555);

$client = new Client($socket);
$client->sendEvent([
    'host' => 'tm',
    'service' => 'loader',
    'metrics' => 1,
    'attributes' => [
        [ 'key' => 'source', 'value' => 'my source'],
    ]
]);

// By default the data will be really send to riemann once 20 events have been queued
// You can still send the data manually by calling:
$client->flush();

// Or by changing the threshold:
$client->setFlushAfter(5);

Installation

Composer

You can install this package with composer, simply add "trademachines/riemann-client-php" to your composer.json file.

{
    "require": {
        "trademachines/riemann-client-php": "dev-master"
    }
}

TODO

  • UDP Packet size control

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 14
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-14