JSON input: make string ignores clear

This commit is contained in:
Cameron Sparr 2016-04-18 13:20:06 -06:00
parent 93f57edd3a
commit 4d46589d39
1 changed files with 7 additions and 2 deletions

View File

@ -75,14 +75,19 @@ metrics are parsed directly into Telegraf metrics.
# JSON: # 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 ```json
{ {
"a": 5, "a": 5,
"b": { "b": {
"c": 6 "c": 6
} },
"ignored": "I'm a string"
} }
``` ```