Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
simple datadogstatsd library
PHP
Branch: master
Pull request Compare This branch is 3 commits ahead, 3 commits behind seejohnrun:master.
Failed to load latest commit information.
libraries
.gitignore
README.md

README.md

PHP DataDog StatsD Client

This is an extremely simple PHP datadogstatsd client

Installation

Clone repository at github.com/anthroprose/php-datadogstatsd

Setup

require './libraries/datadogstatsd.php';

Usage

Increment

To increment things:

DataDogStatsD::increment('your.data.point');
DataDogStatsD::increment('your.data.point', .5);
DataDogStatsD::increment('your.data.point', 1, array('tagname' => 'value'));

Decrement

To decrement things:

DataDogStatsD::decrement('your.data.point');

Timing

To time things:

$start_time = microtime(true);
run_function();
DataDogStatsD::timing('your.data.point', microtime(true) - $start_time);

DataDogStatsD::timing('your.data.point', microtime(true) - $start_time, 1, array('tagname' => 'value'));

Author

Alex Corley - anthroprose@gmail.com

Something went wrong with that request. Please try again.