Skip to content

Configurable Flume Sink that processes JSON-formatted Flume Events and sends them to an InfluxDB series.

Notifications You must be signed in to change notification settings

rajerino/influxdb-flume-sink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

influxdb-flume-sink

Configurable Flume Sink that processes flume JSON-formatted events and sends them to an InfluxDB series using the InfluxDB HTTP API.

InfluxDB

Flume-NG

Dependencies

Compiling/Running

The relevant class or jar files for custom Flume sinks can be placed in the Flume classpath, or the sinks can be compiled along with Flume Source.

Configuring Flume

Set the type of the sink to the class name, e.g.:

agent1.sinks.influxDBSink1.type = org.apache.flume.sink.api.InfluxDBSink

Configurable Sink Properties

Required properties are in bold.

Property Name Default Description
channel -
type - Type name/class-- needs to be org.apache.flume.sink.api.InfluxDBSink
host localhost The hostname or IP of InfluxDB node
hosts - Space-separated hostnames/IPs of InfluxDB nodes to try in turn in case of failure
port 8086 Port InfluxDB is listening for commands to its HTTP API
username root InfluxDB username with write permissions on the database specified in the database property
password root InfluxDB password corresponding to username property
database flumetest Database in which the InfluxDB series specified in seriesName lives
seriesName - Name of InfluxDB series to which this sink writes its messages.
txnEventMax 100 Max number of events to batch from the Flume channel for processing
timestampField - If passing a timestamp for the datapoint, specify its level-0 field name in the JSON dict here
fieldsToExclude - Do not send these space-separated fields from level-0 of the incoming JSON messages to the InfluxDB series
timeUnit ms If sending the timestamp with the incoming message on the timestamp field, these are the units (see InfluxDB docs)
dataField - If data is in a level-1 dictionary in the message JSON, specify the field name for it here
prependDataField - If a dataField is specified, this will prepend the string specified here to all columns in the dataField datapoint

About

Configurable Flume Sink that processes JSON-formatted Flume Events and sends them to an InfluxDB series.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages