TelegrafAgent
Installation
Add this line to your application's Gemfile:
gem 'telegraf_agent'
And then execute:
$ bundle
Or install it yourself as:
$ gem install telegraf_agent
Usage
logger = Logger.new(STDOUT)
agent = TelegrafAgent.new(url: "udp://localhost:3030", logger: logger)
agent.write("SuperProject", keys: { env: Rails.env }, values: { action: "index", duration: 0.2 })