2017 © Pedro Peláez
 

library riemann-php-client

A php client for the Riemann event system

image

schnipseljagd/riemann-php-client

A php client for the Riemann event system

  • Saturday, September 28, 2013
  • by schnipseljagd
  • Repository
  • 2 Watchers
  • 9 Stars
  • 9,494 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

riemann-php-client

Build Status, (*1)

http://riemann.io/quickstart.html, (*2)

Uses thrift socket transport atm, but there is no real need for this dependency., (*3)

example client, (*4)

use Riemann\Client;

require __DIR__ . '/vendor/autoload.php';

$riemannClient = Client::create('localhost', 5555);

$eventBuilder = $riemannClient->getEventBuilder();
$eventBuilder->setService("php stuff");
$eventBuilder->setMetric(mt_rand(0, 99));
$eventBuilder->addTag('histogram');
$eventBuilder->sendEvent();

$eventBuilder = $riemannClient->getEventBuilder();
$eventBuilder->setService("php stuff2");
$eventBuilder->setMetric(mt_rand(99, 199));
$eventBuilder->addTag('meter');
$eventBuilder->sendEvent();

$riemannClient->flush();

query the events:, (*5)

$ irb -r riemann/client
ruby-1.9.3 :001 > r = Riemann::Client.new
 => #<Riemann::Client ... >
ruby-1.9.3 :003 > r['service =~ "php%"']

The Versions

28/09 2013

dev-master

9999999-dev http://riemann.io/

A php client for the Riemann event system

  Sources   Download

MIT

The Requires

 

The Development Requires

by Joscha

event metric riemann