InfluxDB Fetcher - Export data in InfluxDB line protocol format

About

InfluxDB Fetcher is a program to fetch data from InfluxDB using the HTTP query API and export it into InfluxDB line protocol format. It has been conceived by Henri Gomez.

Features

  • Export data from InfluxDB in line protocol format.
  • Fetch subsets of data from InfluxDB by using an InfluxQL expression.
  • Optionally transform fields to tags.
  • Guidelines how to rename fields or manipulate values using sed.

Setup

wget --no-clobber --output-document="/usr/local/bin/influxdb-fetcher" https://raw.githubusercontent.com/hgomez/influxdb/master/bin/influxdb-fetcher
chmod +x /usr/local/bin/influxdb-fetcher

Synopsis

influxdb-fetcher \
    http://influxdb.example.org:8086 root root aqi_readings \
    "SELECT station_type, latitude, longitude, aqi_value FROM testdrive GROUP BY station_type LIMIT 100"