Updated readme for json support

This commit is contained in:
alessandrodd 2016-11-11 10:14:42 +01:00 committed by GitHub
parent 582112fdac
commit 15660367e3
1 changed files with 18 additions and 0 deletions

View File

@ -59,6 +59,24 @@ Kinesis. Right now there are three supported formats; string, json and custom.
String is defined using the default Point.String() value and translated to []byte for the Kinesis stream.
#### json
Json format serialized Telegraf metrics in json format. The format is:
{
"fields":{
"field_1":30,
"field_2":4,
"field_N":59,
"n_images":660
},
"name":"docker",
"tags":{
"host":"raynor"
},
"timestamp":1458229140
}
#### custom
Custom is a string defined by a number of values in the FormatMetric() function.