Skip to content

Instantly share code, notes, and snippets.

@roblayton roblayton/
Last active Feb 21, 2016

What would you like to do?
import random
import time
import statsd
ctr_name = 'stats.test.1'
while True:
client = statsd.StatsClient('localhost', 8125)
rand = random.randrange(1, 250)
print('count: (%d)' % rand)
while rand > 0:
client.incr(ctr_name, 5)
rand -= 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.