Created
December 31, 2014 15:47
-
-
Save dblooman/5777a85017995ab4d61e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
require 'sinatra' | |
require 'statsd' | |
$statsd = Statsd.new '192.168.59.103', 8125 | |
get '/' do | |
$statsd.increment 'visits' | |
"Hello, world" | |
end | |
not_found do | |
status 404 | |
$statsd.increment '404' | |
"not found" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment