trademachines/riemann-client-php
最新稳定版本:1.2.0
Composer 安装命令:
composer require trademachines/riemann-client-php
包简介
PHP Client for riemann
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-14