riemann.influxdb2
Forwards events to InfluxDB v2.
create-client
(create-client {:keys [organization bucket scheme host port token]})Returns a com.influxdb.client.InfluxDBClient instance.
event->point
(event->point event opts)Returns a com.influxdb.client.write.Point instance.
influxdb2
(influxdb2 opts)Returns a function which accepts an event, or sequence of events, and writes them to InfluxDB as a batch of measurement points. For performance, you should wrap this stream with batch or an asynchronous queue.
Support InfluxDB 2.x and InfluxDB 1.8+.
(def influxdb2-forwarder
(batch 100 1/10
(influxdb2 {:host "influxdb.example.com"
:organization "riemann"
:bucket "riemann"
:token "riemann"})))
General Options:
:organizationName of the organization to write to. (default:"riemann"):bucketName of the bucket to write to. (default:"riemann"):schemeURL scheme for endpoint. (default:"http"):hostHostname to write points to. (default:"localhost"):portPort number. (default:8086):tokenAuth token to use to write data. (default:"riemann"):precisionThe time precision. Possibles values are:seconds,:millisecondsand:microsecondsand:nanoseconds(default:seconds).