Skip to content

Instantly share code, notes, and snippets.

@clutchski
Created June 27, 2012 19:50
Show Gist options
  • Save clutchski/3006366 to your computer and use it in GitHub Desktop.
Save clutchski/3006366 to your computer and use it in GitHub Desktop.
statsd test
from random import random
from dogapi import dog_stats_api
dog_stats_api.start(statsd=True,
statsd_host='localhost',
statsd_port=8125)
while True:
dog_stats_api.gauge('test.udp.gauge', 1000)
dog_stats_api.increment('test.udp.counter')
dog_stats_api.histogram('test.udp.histogram', random() * 1000)
import time
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment