Skip to content

Telegraf agent - a class for sending data to the telegraf server. Simple.

License

Notifications You must be signed in to change notification settings

umbrellio/telegraf_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Telegraf agent - a class for sending data to the telegraf server. Simple.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published