Skip to content

Instantly share code, notes, and snippets.

@miketheman
Forked from sidgopalan/gist:6540952
Last active December 22, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketheman/6541716 to your computer and use it in GitHub Desktop.
Save miketheman/6541716 to your computer and use it in GitHub Desktop.
require "statsd"
# Create a stats instance.
statsd = Statsd.new("localhost", 8125)
# Increment a counter for 5 minutes, 1 point per second
(1...300).each { statsd.count("dev.mike.dogstatsd", 1) ; sleep 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment