Skip to content

Instantly share code, notes, and snippets.

@philipcristiano
Created February 22, 2012 19:12
Show Gist options
  • Save philipcristiano/1886713 to your computer and use it in GitHub Desktop.
Save philipcristiano/1886713 to your computer and use it in GitHub Desktop.
Test script for statsd
import random
import time
from pystatsd import Client, Server
sc = Client('statsd.local.vm',8125)
while True:
sc.increment('python_test.inc_int')
time.sleep(random.random())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment