influxdb-lineprotocol-writer-ruby

A Ruby Library for Writing to InfluxDB v0.9+ using the new Line Protocol (https://github.com/influxdb/influxdb/pull/2696)

This is alpha-quality code

Currently supports all param options made available except SSL b/c I'm too lazy to test that at this time.

Likewise, this sorts the keys and fields to further hopefully make this the fastest writer currently out there (sorting is strongly recommended in the referenced PR).

If you fork this and make it better, I'll review, merge, increment version, and push an updated gem in a reasonable timeframe.

Default URI params are documented in lib/influxdb-lineprotocol-writer-ruby/core.rb in the class initializer.

Install

$ gem install influxdb-lineprotocol-writer

Usage

Files in the examples demonstrate usage both as a regular library and as a Sensu Check and Handler.