- 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
- Start telegraf with the provided config file
telegraf --config telegraf_influx_to_questdb.conf
- (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
- After a few moments you should see your data into questdb. Connect to your questdb instance (defaults to
http://localhost:9000
) and run this querySELECT * from temperature
. Three rows should appear, one for each method we are using at the JAVA class.