Skip to content

Instantly share code, notes, and snippets.

require "statsd"
# Create a stats instance.
statsd = Statsd.new("localhost", 8125)
# Increment a counter.
(1...100).each { statsd.count("dev.ruby.dogstatsd", 1) }