Commit Graph

21 Commits

Author SHA1 Message Date
Cameron Sparr 798e8d0f9f Deprecate statsd convert_names option, expose separator
closes #876
2016-04-08 18:34:51 +02:00
Adam Argo 5db6329147 PR feedback changes
closes #927
2016-04-08 18:34:51 +02:00
Adam Argo e863201300 adds ability to parse datadog-formatted tags in the statsd input 2016-04-08 18:34:51 +02:00
HUANG Wei 8e671e0154 Inherit previous instance's stats in statsd plugin.
This way, after a reload, the stats wont restart again at least for the
counter type.

closes #887
2016-04-08 18:34:50 +02:00
Cameron Sparr e4248bd7a6 Close UDP listener in udp_listener plugin
also adding waitgroups to udp_listener and statsd plugins to verify that
all goroutines have been cleaned up before Stop() exits.

closes #869
2016-04-08 18:34:50 +02:00
HUANG Wei 55e1d1d5ee fixup! Close the UDP connection in Stop() of statsd input plugin. 2016-04-08 18:34:49 +02:00
HUANG Wei 3e3d3f93f8 Close the UDP connection in Stop() of statsd input plugin.
If not, when doing reload, we may listen to the same port, we'll get
error about listen to already used address.
2016-04-08 18:34:49 +02:00
Matt Heath d8c0668fd8 Add support for multiple field names for timers
closes #737
2016-04-08 18:34:46 +02:00
Cameron Sparr 0dbb52f9d6 Seems to be a toml parse bug around triple pounds 2016-04-08 18:34:44 +02:00
Cameron Sparr 132f89e3fe Root directory cleanup 2016-04-08 18:34:44 +02:00
Cameron Sparr eb5dddf0d6 Flush based on buffer size rather than time
this includes:
- Add Accumulator to the Start() function of service inputs
- For message consumer plugins, use the Accumulator to constantly add
  metrics and make Gather a dummy function
- rework unit tests to match this new behavior.
- make "flush_buffer_when_full" a config option that defaults to true

closes #666
2016-04-08 18:34:43 +02:00
Cameron Sparr c09884c686 Fixup some URL typos 2016-02-08 21:36:53 -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
Cameron Sparr 9e7c8df384 statsd: allow template parsing fields. Default to value=
closes #602
2016-01-28 16:56:50 -07:00
Marcin Bunsch 1f1384afc6 Use a single measurement with fields for timings in statsd plugin.
closes #603
2016-01-28 12:03:48 -07:00
Cameron Sparr 9c0d14bb60 Create public models for telegraf metrics, accumlator, plugins
This will basically make the root directory a place for storing the
major telegraf interfaces, which will make telegraf's godoc looks quite
a bit nicer. And make it easier for contributors to lookup the few data
types that they actually care about.

closes #564
2016-01-27 15:42:50 -07:00
Cameron Sparr 6647cfc228 statsd: If parsing a value to int fails, try to float and cast to int
fixes #556
2016-01-20 14:30:57 -07:00
Jack Zampolin 0cdf1b07e9 Fix issue 524 2016-01-20 10:57:35 -08:00
Cameron Sparr 839651fadb Change default statsd packet size to 1500, make configurable
Also modifying the internal UDP listener/parser code to make it able to
handle higher load. The udp listener will no longer do any parsing or
string conversion. It will simply read UDP packets as bytes and put them
into a channel. The parser thread will now deal with splitting the UDP
metrics into separated strings.

This could probably be made even better by leaving everything as byte
arrays.

fixes #543
2016-01-19 11:08:16 -07:00
Cameron Sparr c483e16d72 Add option to disable statsd name conversion
closes #467
closes #532
2016-01-15 15:58:09 -07:00
Cameron Sparr 9c5db1057d renaming plugins -> inputs 2016-01-07 15:04:30 -07:00