Commit Graph

28 Commits

Author SHA1 Message Date
Daniel Nelson 03de92b962
Remove trailing underscore trimming from json flattener (#6744) 2019-12-03 11:46:29 -08:00
David McKay a9a0d4048a Add strict mode to JSON parser (#6536) 2019-10-23 14:06:39 -07:00
Daniel Nelson 6dc61be6eb
Fix detection of layout timestamps (#6390) 2019-09-16 16:32:14 -07:00
Greg df288a0bb4 Keep boolean when listed in json_string_fields (#6400) 2019-09-16 16:30:34 -07:00
Daniel Nelson 558c825478
Link to specific gjson version we are using 2019-08-28 18:11:38 -07:00
Daniel Nelson e576048e02
Treat empty array as successful parse (#6130) 2019-07-17 15:03:09 -07:00
Daniel Nelson 41176dd1f1
Support string field glob matching in json parser (#6102) 2019-07-15 16:48:19 -07:00
Douglas Drinka 1886676e14 Support configuring a default timezone in JSON parser (#5472) 2019-02-25 11:30:33 -08:00
Greg 10ac030502 Unify time parsing in json/csv parsers (#5382) 2019-02-05 17:43:35 -08:00
Adrián López 7caa5d20af Fix invalid JSON in readme (#5158) 2018-12-18 12:21:36 -08:00
Greg 6ef331efeb Add micro and nanosecond unix timestamp support to JSON parser (#5149) 2018-12-14 14:38:01 -08:00
Greg 83bc3d1277 Improve docs to clarify common issues (#5054) 2018-12-10 16:14:20 -08:00
Daniel Nelson 0e07bbb877
Fix option names in json parser docs 2018-11-05 17:15:07 -08:00
Daniel Nelson ad320ac1e0
Remove the time_key from the field values in JSON parser (#4951) 2018-11-02 17:53:45 -07:00
Greg 4c9c31c34f Fix panic if JSONNameKey is not found (#4735) 2018-09-21 15:47:41 -07:00
Daniel Nelson 41d528c8ce
Split parser/serializer docs (#4690) 2018-09-17 11:45:08 -07:00
David Reniz cd4c4e7fbd Added Unix epoch timestamp support for JSON parser (#4633) 2018-09-06 18:44:33 -06:00
maxunt 2729378b7f Add name, time, path and string field options to JSON parser (#4351) 2018-08-22 19:26:48 -07:00
maxunt 8482c40a91 Fix selection of tags under nested objects in the JSON parser (#4284) 2018-06-14 13:17:32 -07:00
Daniel Meiners 9647ea88ea Ignore UTF8 BOM in JSON parser (#4099) 2018-05-03 11:40:28 -07:00
Daniel Nelson 4243403432 Remove warning when JSON contains null value (#3359) 2017-10-19 16:25:58 -07:00
Daniel Nelson 22a9ffbb9d Allow JSON data format to contain zero metrics (#3268) 2017-09-26 15:58:33 -07:00
Matt O'Hara 1392e73125 Add clusterstats to elasticsearch plugin (#1979)
* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* responses to requested changes

* remove unnecessary recommendation
2016-12-20 16:30:03 +00:00
Cameron Sparr db7a4b24b6 Implement telegraf's own full metric type
main reasons behind this:
- make adding/removing tags cheap
- make adding/removing fields cheap
- make parsing cheaper
- make parse -> decorate -> write out bytes metric flow much faster

Refactor serializer to use byte buffer
2016-12-01 18:17:02 +00:00
John Engelman 94ce67cc67 Add support to parse JSON array. (#1965) 2016-11-15 13:02:55 -05:00
Daniele Gozzi 9ea3dbeee8 Allow numeric and non-string values for tag_keys. (#1782)
* Allow numeric and non-string values for tag_keys.

According to the go documentation the JSON deserializer only produces these
base types in output:
- string
- bool
- float64
- nil
With this patch bool, float64 and nil values get converted to a string when
their field key is specified in tag_keys. Previously the field was simply
discarded.

* Updated handling of nil for passing tests.

The automated tests are less than trivial to reproduece locally for me,
so I hope CircleCI wonn't mind...

* Updated changelog entries with PR and issue links.
2016-09-21 18:07:35 +01:00
Cameron Sparr 8d0f50a6fd MQTT Consumer Input plugin 2016-02-12 11:13:32 -07:00
Cameron Sparr e619493ece Implementing generic parser plugins and documentation
This constitutes a large change in how we will parse different data
formats going forward (for the plugins that support it)

This is working off @henrypfhu's changes.
2016-02-08 21:08:44 -07:00