Created
March 24, 2018 11:35
-
-
Save thinkjson/989adec105214409ba9f238930793ef3 to your computer and use it in GitHub Desktop.
Process speedtest.py results as statsd counters
This file contains hidden or 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
| import csv | |
| import sys | |
| reader = csv.reader(sys.stdin) | |
| Server,Sponsor,Server,Timestamp,Distance,Ping,Download,Upload = reader.next() | |
| print "speedtest.ping:%s|c" % Ping | |
| print "speedtest.download:%s|c" % Download | |
| print "speedtest.upload:%s|c" % Upload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment