0.0
No commit activity in last 3 years
No release in over 3 years
Telegraf agent
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 0.8
~> 11.2
~> 3.8
~> 0.16

Runtime

~> 0.6
 Project Readme

TelegrafAgent

Build Status Coverage Status Gem Version

Class for sending data to the telegraf server.

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

Just initialize an agent like:

logger = Logger.new(STDOUT)
url = "tcp://localhost:1234"
agent = TelegrafAgent.new(url: url, logger: logger)

Logger param is optional.

And then use:

tags = { env: Rails.env }
values = { action: "index", duration: 0.2 }
agent.write("SuperProject", tags: tags, values: values)

All params are required.

License

Released under MIT License.

Authors

Created by Aleksey Bespalov.

Supported by Umbrellio