javier / influx-http-telegraf-questdb

Ingest data from influx http into questdb via telegraf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Influx to QuestDB via Telegraf

  1. Make sure you have a questdb instance running and accepting connections on 9009 (or change the telegraf config file accordingly). You can start questdb via docker with
   docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 -p 9003:9003 questdb/questdb:latest
  1. Start telegraf with the provided config file
  telegraf --config telegraf_influx_to_questdb.conf
  1. (See Python folder if you prefer Python). Run this JAVA example. It should write one row using a data point, one using the ILP protocol, and one via a POJO. Demo data will be written into a new temperature table in your questdb server. You can run it via
mvn compile exec:java -Dexec.mainClass=example.InfluxDB2Example
  1. After a few moments you should see your data into questdb. Connect to your questdb instance (defaults to http://localhost:9000) and run this query SELECT * from temperature. Three rows should appear, one for each method we are using at the JAVA class.
image

About

Ingest data from influx http into questdb via telegraf


Languages

Language:Java 80.9%Language:Python 19.1%