Skip to content

Instantly share code, notes, and snippets.

@thinkjson
Created March 24, 2018 11:35
Show Gist options
  • Select an option

  • Save thinkjson/989adec105214409ba9f238930793ef3 to your computer and use it in GitHub Desktop.

Select an option

Save thinkjson/989adec105214409ba9f238930793ef3 to your computer and use it in GitHub Desktop.
Process speedtest.py results as statsd counters
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