Add this line to your application's Gemfile:
gem 'cloudinsight-sdk'And then execute:
$ bundleOr install it yourself as:
$ gem install cloudinsight-sdkrequire 'cloudinsight-sdk'
statsd = CloudInsight::Statsd.new
#Increment a counter.
statsd.increment('page.views')
#Record a gauge 100 of replies
statsd.gauge('blogs.replies', 100)
#Record a gauge 50% of the time.
statsd.gauge('users.online', 100, ['users.cloudinsight'], 0.5)document see: http://docs-ci.oneapm.com/api/ruby.html