Commit Graph

23 Commits

Author SHA1 Message Date
Daniel Nelson 8301861b1b
Fix dropwizard parsing error for metrics that need escaped ()
If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.

(cherry picked from commit 0af40a8a5d)
2018-05-14 11:02:18 -07:00
Daniel Nelson 29bdb324d6
Fix handling of floats with multiple leading zeroes ()
(cherry picked from commit a3500cc33a)
2018-04-23 14:02:21 -07:00
Daniel Nelson 460a5ced87
Fix ints being capped at 32-bits on 32-bit archs ()
(cherry picked from commit fe4d3cd117)
2018-04-20 15:06:04 -07:00
Daniel Nelson b5babc3f00
Fix newline escaping in line protocol ()
(cherry picked from commit e4f8a82ee6)
2018-04-09 15:30:35 -07:00
Daniel Nelson bcaaeda49c
Fix precision truncation when no timestamp included () 2018-04-02 14:32:33 -07:00
Daniel Nelson 64b239663c
Add mutex to influx parser 2018-04-02 12:52:23 -07:00
Daniel Nelson 38ec968b0b
Move Handler interface into machine where it is used 2018-03-30 11:11:12 -07:00
Daniel Nelson b99cd14129
Add influx uint support as a runtime option () 2018-03-29 13:31:43 -07:00
Matt a320f91516 Add line protocol uint64 support () 2018-03-28 16:43:25 -07:00
Daniel Nelson 1c0f63a90d
Add new line protocol parser and serializer, influxdb output () 2018-03-27 17:30:51 -07:00
Daniel Nelson 4f42d8a298
Add benchmark test for single metric 2017-12-08 13:23:08 -08:00
faye-sama a411306fba Fail metrics parsing on unescaped quotes ()
Before this change Fields() method on a metric parsed from a line with
unescaped quotes could panic. This change makes such line unparseable.

Fixes 
2017-11-13 15:06:47 -08:00
Daniel Nelson 62b5c1f7e7 Add support for precision in http_listener () 2017-04-10 16:39:40 -07:00
Cameron Sparr 54cfbb5b87
metric: Fix negative number handling
closes 
2017-02-01 10:07:31 +00:00
Cameron Sparr 22340ad984
Add newline to influx line-protocol if not present
closes 
2017-01-23 13:52:20 -08: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
Cameron Sparr 5c32521a07 Add benchmarks for metric parsing and creating 2016-11-23 17:23:08 +00:00
Cameron Sparr 097b1e09db http listener refactor
in this commit:

- chunks out the http request body to avoid making very large
  allocations.
- establishes a limit for the maximum http request body size that the
  listener will accept.
- utilizes a pool of byte buffers to reduce GC pressure.
2016-10-24 18:17:49 +01:00
Cameron Sparr 9540a6532f Update influxdb dependency for new models.Tags 2016-10-12 14:50:19 +01:00
Cameron Sparr a9c135488e Add Serializer plugins, and 'file' output plugin 2016-02-12 14:13:49 -07: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