Skip to content

paulgoldbaum/riemann-client-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riemann-client-php

Build Status

Simple PHP client for Riemann

Usage

$socket = new UdpSocket('127.0.0.1', 5555);

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

// 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

  • TCP Transport
  • UDP Packet size control

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages