Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Nelson a275e6792a Fix metric splitting edge cases ()
Metrics needing one extra byte to fit the output buffer would not be split, so we would emit lines without a line ending. Metrics which overflowed by exactly one field length would be split one field too late, causing truncated fields.
2017-06-07 13:37:54 -07:00
Daniel Nelson 5bab4616ff Fix udp metric splitting () 2017-06-05 12:44:29 -07:00
Daniel Nelson 62b5c1f7e7 Add support for precision in http_listener () 2017-04-10 16:39:40 -07:00
jeremydenoun ae6a5d2255 Remove warning if parse empty content ()
closes 
2017-03-08 14:08:55 -08:00
Leandro Piccilli 5da40d56ad
Check if tag value is empty before allocation
closes 
closes 
2017-02-16 23:07:27 +00:00
Cameron Sparr 694955c87b
Remove metric.Point from metric interface 2017-02-03 16:53:07 +00:00
Cameron Sparr 285be648c4
Godeps update
closes 
2017-02-02 09:52:06 +00:00
Cameron Sparr 54cfbb5b87
metric: Fix negative number handling
closes 
2017-02-01 10:07:31 +00:00
Cameron Sparr 4a5d313693
Improve the InfluxDB through-put performance
This changes the current use of the InfluxDB client to instead use a
baked-in client that uses the fasthttp library.

This allows for significantly smaller allocations, the re-use of http
body buffers, and the re-use of the actual bytes of the line-protocol
metric representations.
2017-01-25 11:54:16 -08:00
Cameron Sparr 6b0e863556 Support a telegraf.Metric.Split function 2016-12-07 15:18:47 +00:00
Cameron Sparr af6e7b9531 More unit tests for new metric 2016-12-01 19:07:14 +00:00
Cameron Sparr 6fd7361364 allocation & perf improvements 2016-12-01 18:17:02 +00:00
Cameron Sparr e5c7a71d8e Fix unit tests for new metric implementation 2016-12-01 18:17:02 +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