Advertisement
Guest User

Untitled

a guest
Nov 28th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. <?php
  2. error_reporting(-1);
  3.  
  4. include './statsd-php/src/League/StatsD/Client.php';
  5.  
  6. $statsd = new League\StatsD\Client();
  7. $statsd->configure(array(
  8.     'host' => '127.0.0.1',
  9.     'port' => 8125,
  10.     'namespace' => 'ometria'
  11. ));
  12.  
  13. for ($i=0; $i<10; $i++)
  14. {
  15.     $statsd->increment('test.test');
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement