https://github.com/javier/influx-http-telegraf-questdb
Ingest data from influx http into questdb via telegraf
https://github.com/javier/influx-http-telegraf-questdb
Last synced: 11 months ago
JSON representation
Ingest data from influx http into questdb via telegraf
- Host: GitHub
- URL: https://github.com/javier/influx-http-telegraf-questdb
- Owner: javier
- Created: 2023-10-16T16:09:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T11:42:10.000Z (over 2 years ago)
- Last Synced: 2023-12-15T12:46:46.261Z (over 2 years ago)
- Language: Java
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```shell
docker run -p 9000:9000 -p 9009:9009 -p 8812:8812 -p 9003:9003 questdb/questdb:latest
```
2. Start [telegraf](https://docs.influxdata.com/telegraf/v1/install/) with the provided config file
```shell
telegraf --config telegraf_influx_to_questdb.conf
```
3. (See [Python folder](./python) 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
```shell
mvn compile exec:java -Dexec.mainClass=example.InfluxDB2Example
```
4. 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.