Created
June 27, 2012 19:50
-
-
Save clutchski/3006366 to your computer and use it in GitHub Desktop.
statsd test
This file contains 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
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