Skip to content

Ruby

To send data to Tornimo, you need to install some graphite-compatibile library like for example GraphiteAPI. It can be installed using gem.

gem install graphite-api

Example showing how to send some example metric using GraphiteAPI library.

require 'graphite-api'

client = GraphiteAPI.new( graphite: "tcp://#{YOUR_TORNIMO_PUSH_URL}:2003", prefix: YOUR_TORNIMO_TOKEN  )
client.metrics "your.example.metric" => 10