/plushcap/analysis/influxdata/json-to-influxdb-with-telegraf-and-starlark

JSON to InfluxDB with Telegraf and Starlark

What's this blog post about?

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.

Company
InfluxData

Date published
March 5, 2021

Author(s)
Sam Dillard

Word count
1442

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.