Content Deep Dive
JSON to InfluxDB with Telegraf and Starlark
Blog post from InfluxData
Post Details
Company
Date Published
Author
Sam Dillard
Word Count
1,442
Language
English
Hacker News Points
-
Summary
This blog post discusses how to use Telegraf to convert JSON data into Line Protocol format for use with InfluxDB. It explains that Telegraf has many input plugins for collecting JSON data, including HTTP Scraper, HTTP Listener, Socket listener, Kafka Consumer, Execd/Exec, File/Tail, and more. The post then focuses on the Starlark Processor plugin as a method to transform JSON data. It provides an example of how to configure Telegraf with the Starlark processor and includes sample code for parsing JSON using Starlark. Finally, it explains the Line Protocol format that results from this process.