Demo to show how to connect data in Kafka to InfluxDB using Telegraf.
docker-compose up
Wait for 30 seconds for the spew of logs to stop.
- Send some data:
docker exec -i kafkacat kafkacat -b broker:9092 -P -t telegraf <<EOF
{"metric": "weather", "tags": {"location": "Sydney", "season": "spring"}, "temperature": 20, "timestamp": "$(date +"%Y-%m-%dT%H:%M:%S%z")"}
EOF
- Navigate to
<YOURMACHINE>:8086
and login with username:my-user
and password:my-password
. Check the data in the bucketmy-bucket
and you'll see a measurement in there forweather
.