Sha256: 111f7147051328d649566381ecfd351a74aaad2ee7de19f6e92153a6dcba0e15
Contents?: true
Size: 975 Bytes
Versions: 1
Compression:
Stored size: 975 Bytes
Contents
= Instrumental Agent Instrument anything. == Setup Add the gem to your Gemfile. gem 'instrumental_agent' Head over to instrumentalapp.com and setup an account, then initialize the agent. I = Instrumental::Agent.new('YOUR_API_KEY', :enabled => Rails.env.production?) If you already use EventMachine elsewhere, or are hosted on heroku then you will need to disable the reactor loop startup like so: I = Instrumental::Agent.new('YOUR_API_KEY', :enabled => Rails.env.production?, :start_reactor => false) Now you can begin to use instrumental to track your application I.gauge('load', 1.23) I.increment('signups') Data without historical context sucks, so Instrumental lets you backfill data to. Letting you see deep into your past. User.find_each do |user| I.increment('signups', 1, user.created_at) end Running under Rails? You can also give our experimental rack middleware a shot by initializing it with: Instrumental::Middleware.boot
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
instrumental_agent-0.1.2 | README.rdoc |