{"repo":"jgraichen/telegraf-ruby","free":true,"listed":false,"github":"https://github.com/jgraichen/telegraf-ruby","clone":"git clone https://github.com/jgraichen/telegraf-ruby.git","description":"Send events from Ruby to a Telegraf agent","language":"Ruby","stars":13,"topics":["metrics","ruby","rails","telegraf","influx","rack"],"license":"LGPL-3.0","category":"analytics","readme_excerpt":"Telegraf Send events to a local Telegraf agent or anything that can receive the InfluxDB line protocol. It further includes plugins for Rack, Rails, ActiveJob and Sidekiq to collect request events. See plugin usage details below. Examples Installation And then execute: Or install it yourself as: Usage as a library Configure telegraf socket listener e.g.: There is no buffer or batch handling, nor connection pooling or keep alive. Each #write creates a new connection (unless it's a datagram connection). There is no exception handling. Using the Rack and Rails plugins This gem includes a Rails plugin and middlewares / adapters for Rack, ActiveJob and Sidekiq, to collect request and background worker events. You need to require them explicitly: Rack See middleware class documentation for more details. The Rack middleware supports parsing the X-Request-Start: t= header expecting a fractional (UTC) timestamp when the request has been started or first received by e.g. a load balancer. An additional value queue ms with the queue time will be included. Rails The Rails plugin needs to be required, too, but will automatically install additional components (Rack, ActiveJob, Sidekiq and Rails-specific instrumentation). Received event example: See the various classes' documentation for more details on the collected tags and values: - Rack middleware - Rails plugin - ActiveJob plugin - Sidekiq middleware ActiveJob See plugin class documentation for more details. Sidekiq See middleware class","default_branch":null,"files":null,"tree":[],"storefront":"/r/jgraichen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jgraichen/telegraf-ruby/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}