From 4d46589d398ca8b8b2df05916eed02bba58c57d5 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Mon, 18 Apr 2016 13:20:06 -0600 Subject: [PATCH] JSON input: make string ignores clear --- docs/DATA_FORMATS_INPUT.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/DATA_FORMATS_INPUT.md b/docs/DATA_FORMATS_INPUT.md index 6a916711b..07134e979 100644 --- a/docs/DATA_FORMATS_INPUT.md +++ b/docs/DATA_FORMATS_INPUT.md @@ -75,14 +75,19 @@ metrics are parsed directly into Telegraf metrics. # JSON: -The JSON data format flattens JSON into metric _fields_. For example, this JSON: +The JSON data format flattens JSON into metric _fields_. +NOTE: Only numerical values are converted to fields, and they are converted +into a float. strings are ignored unless specified as a tag_key (see below). + +So for example, this JSON: ```json { "a": 5, "b": { "c": 6 - } + }, + "ignored": "I'm a string" } ```