Skip to content

Instantly share code, notes, and snippets.

@sidgopalan
Created September 12, 2013 17:17
Show Gist options
  • Save sidgopalan/6540952 to your computer and use it in GitHub Desktop.
Save sidgopalan/6540952 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