How to Parse JSON with Telegraf into InfluxDB Cloud
The article discusses how to parse JSON data with Telegraf into InfluxDB Cloud. It introduces the new JSON v2 parser in Telegraf 1.19, which offers improvements over the original JSON parser (json_v1). Key enhancements include independent GJSON queries, more verbose but clearer configuration, more control over field types, and control over resulting tag/field names. The article provides a detailed guide on how to configure Telegraf to ingest JSON data using the new parser, including setting up measurements, tags, fields, and objects. It also includes examples of migrating configurations from json_v1 to v2 and additional use cases for the new JSON parser.
Company
InfluxData
Date published
Nov. 2, 2021
Author(s)
Samantha Wang
Word count
3076
Language
English
Hacker News points
None found.