Last active
August 29, 2015 14:08
-
-
Save mageekguy/963037259c871e62501e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use estvoyage\statsd; | |
$connection = new statsd\connection\internet(new statsd\address); | |
(new statsd\packet) | |
->adds([ new statsd\metric\timing('speed1', 1), new statsd\metric\gauge('gauge1', 5), new statsd\metric\timing('speed2', 3) ]) | |
->writeOn($connection) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In a terminal:
In an another terminal:
In the first terminal, you should see: