2017 © Pedro Peláez
 

library statsd-php-client

A statsd (thanks Etsy!) client for php

image

ifixit/statsd-php-client

A statsd (thanks Etsy!) client for php

  • Saturday, October 18, 2014
  • by danielbeardsley
  • Repository
  • 35 Watchers
  • 19 Stars
  • 60,150 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

This php library makes it simple to send stats you care about to a statsd daemon and has a little more functionality (and tests) than Etsy's default PHP implementation., (*1)

See: https://github.com/etsy/statsd, (*2)

The biggest difference is the addition of a Queue which can be paused and flushed. This allows you to track hundreds of stats in a short time while still only sending one UDP packet at the end of whatever it is you are doing., (*3)

Usage

This is meant to be subclassed and the static $host and $port variables overridden., (*4)

require('StatsD.php');

StatsD::increment("something");

StatsD::timing("something", $time);

StatsD::gauge("something", $value);

// Arbitrary valued counters (instead of inc / dec)
StatsD::updateStat("something", 42, 0.1); // 0.1 sample rate

// Buffer UDP output packets
StatsD::pauseStatsOutput();
// Bunch of StatsD::increment() or others

// Sends one UDP packet instead of one for each call
StatsD::flushStatsOutput();

Continuous Integration

Tested by Travis CI: Build Status, (*5)

The Versions

18/10 2014

dev-master

9999999-dev https://github.com/iFixit/statsd-php-client

A statsd (thanks Etsy!) client for php

  Sources   Download

The Development Requires

by Daniel Beardsley

statsd

01/10 2014

dev-composer-support

dev-composer-support https://github.com/iFixit/statsd-php-client

A statsd (thanks Etsy!) client for php

  Sources   Download

The Development Requires

by Daniel Beardsley

statsd