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
  • 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.
(1...100).each { statsd.count("dev.ruby.dogstatsd", 1) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment