Arf. Pup has been disconnected. Please restart Pup and refresh the page.
Pup is waiting for data…
To send data to Pup:
-
1. Install the Datadog agent.
-
2. Instrument your Python or Ruby code with dogstatsd
Python
If you haven't already, install the library
$ sudo easy_install dogstatsd-python
Import the library in the code of your choice
# Here's an example from statsd import statsd def render_home_page(user_id): """ Render the home page for the given user. """ user = user_cache.get(user_id) if user: statsd.increment("user.cache_hit") else: statsd.increment("user.cache_miss")
Run your code, and voilà! Metrics should be appearing any second now.
Ruby
If you haven't already, install the dogstatsd-ruby gem
$ gem install dogstatsd-ruby
Require the gem in the code of your choice
# Here's an example in Ruby require 'statsd' require 'sinatra' statsd = Statsd.new() get '/' do statsd.increment('page hits (per ten seconds)') erb :index end
Whabam! Insight. Note: The "." separator indicates to Pup to group metrics under a namespace defined by what's left of the first "." in the metric name.
Made with love by the Datadog team
Questions? Email support@datadoghq.com
more not shown.
Show all —