reimda
f7aab29381
chore: Fix readme linter errors for input plugins M-Z ( #11274 )
2022-06-08 15:22:56 -06:00
Joshua Powers
2fc19fa308
chore: correctly spell embed ( #11200 )
2022-05-27 07:13:47 -06:00
Sven Rebhan
56eb914998
chore: Embed sample configurations into README for inputs ( #11136 )
2022-05-24 08:49:47 -05:00
Sebastian Spaink
0f5dc9946c
chore(inputs_m-z): migrate sample configs into separate files ( #11133 )
2022-05-18 11:31:34 -05:00
Peter (Stig) Edwards
2cad990e10
docs: correct copy-and-paste of udp to tcp ( #11080 )
2022-05-11 09:54:36 -06:00
Eng Zer Jun
81090be35d
refactor: replace strings.Replace with strings.ReplaceAll ( #11079 )
2022-05-11 09:53:34 -06:00
Joshua Powers
3e60bc1d4b
fix: do not error when closing statsd network connection ( #11043 )
2022-05-10 15:24:34 -06:00
Sebastian Spaink
b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) ( #10926 )
2022-04-11 16:32:25 -05:00
Thomas Casteleyn
a4f6b27bd5
style: Add deprecation notices to plugin options ( #10616 )
2022-03-01 15:05:53 -07:00
Joshua Powers
39e065fd78
fix: sanitize stasd names ( #10466 )
2022-03-01 15:01:08 -07:00
Mya
837465fcd5
chore: clean up all errors for markdown lint input plugins s through v ( #10167 )
2021-11-24 11:50:13 -07:00
rentiansheng
cd0a7cd52f
fix: input plugin statsd bug ( #10116 )
2021-11-23 15:05:23 -07:00
Paweł Żak
2a0c3059a1
fix: Linter fixes for plugins/inputs/s* ( #10104 )
...
Co-authored-by: Pawel Zak <Pawel Zak>
2021-11-18 09:04:52 -07:00
Mya
ff8ed37762
fixed percentiles not being able to be ints ( #9447 )
2021-07-19 08:53:07 -06:00
Brian Lamar
c6c3efdb97
Don't stop parsing after statsd parsing error ( #9423 )
2021-06-24 14:43:23 -06:00
Sven Rebhan
9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} ( #8969 )
2021-04-09 13:15:04 -04:00
Sven Rebhan
8e7da355b3
Linter fixes (unhandled errors) -- Part 1 ( #8992 )
2021-04-08 11:43:39 -05:00
Paweł Żak
099ccda3f9
Linter fixes - gosimple ( #9046 )
2021-03-25 13:57:01 -04:00
Paweł Żak
5de640b855
Linter fixes - unconvert, revive:empty-lines, revive:var-naming, revive:unused-parameter ( #9036 )
...
Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-24 11:27:46 -04:00
Paweł Żak
74a1acd814
Linter fixes - revive:unused-parameter, unparam, varcheck and unused ( #8984 )
...
* Linter fixes - revive:unused-parameter and unparam
* Linter fixes - revive:unused-parameter and unparam
* Linter fixes - revive:unused-parameter and unparam
* "nolint"'s removed
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
* Fixes for "varcheck" and "unused" added.
Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-22 12:21:36 -05:00
Paweł Żak
8a6907a186
Revive fixes - part 3 ( #8872 )
...
* * Revive fixes regarding following set of rules: [rule.var-naming]
2021-03-01 16:04:35 -05:00
David Bennett
25aa0eeb21
Fix statsd concurrency bug ( #8885 )
...
* Fix the issue
* Remove test I was using for replication
* Accidentally removed test.
* Add lock only where it is necessary.
* eliminate unnecessary space
2021-02-25 17:17:46 -05:00
Paweł Żak
d9736d543f
Revive fixes - part 2 ( #8835 )
...
* Revive fixes regarding following set of rules:
[rule.if-return]
[rule.increment-decrement]
[rule.var-declaration]
[rule.package-comments]
[rule.receiver-naming]
[rule.unexported-return]
2021-02-16 18:19:50 -05:00
Sreejith Pp
f888136333
Add support for datadog distributions metric ( #8179 )
...
* Add support for datadog distributions in statsd
* Parse metric distribution correctly
* Add tests to check distributions are parsed correctly
* Update Statsd plugin Readme with details about Distributions metric
* Refactor metric distribution initialization code
* Update distribution metric interface to replace fields with value
* Refactor statsd distribution metric test code
* Fix go formatting errors
* Add tests to parse only when DataDog Distributions config is enabled
* Add config to enable parsing DataDog Statsd Distributions
* Document use of datadog_distributions config in Readme
2021-02-16 11:50:01 -06:00
Steven Soroka
9814d3d84d
fix some annoying tests due to ports in use
2021-01-08 17:30:43 -05:00
David Bennett
2187baceea
Add configurable Max TTL duration for statsd input plugin entries ( #8509 )
...
* Adding max TTL duration for all metric caches in the statsd input plugin
* Update README.md
was missing type in readme
2020-12-04 14:39:00 -05:00
Russ Savage
40c6d189fe
fix(readmes): standarize first line of readmes ( #7973 )
2020-08-11 16:10:41 -04:00
Stephen Solka
6580c6a597
prefer testify error funcs over nil checks ( #7857 )
2020-07-20 10:34:46 -04:00
Josh Soref
2c56d6de81
Fix spelling errors in comments and documentation ( #7492 )
2020-05-14 00:41:58 -07:00
josephpeacock
ab8438dcc6
Add threaded parsing in statsd input plugin ( #6922 )
2020-03-03 14:47:33 -08:00
Daniel Nelson
9243ae9f51
Add udp internal metrics for the statsd input ( #6921 )
2020-01-22 15:28:41 -08:00
Daniel Nelson
10db774db3
Add prometheus round trip unit tests ( #6720 )
2019-11-26 17:31:36 -08:00
Greg
817c9a69a9
Document and add support to input plugins for logging alias ( #6357 )
2019-09-23 15:39:50 -07:00
Cristofer Gonzales
b15fe4a28e
Initialize accumulator in statsd during Start ( #6121 )
2019-07-15 18:23:56 -07:00
Pitxyoki
72c2ac9648
Support floats in statsd percentiles ( #5572 )
2019-07-09 16:50:20 -07:00
Daniel Nelson
5dea2175d2
Fix panic with empty datadog tag string ( #6088 )
2019-07-08 14:44:36 -07:00
Daniel Nelson
a231b3e79d
Fix parsing of remote tcp address in statsd input ( #6031 )
2019-06-25 12:04:39 -07:00
Jorge Landivar
8f3ed45797
Add support for datadog events to statsd input ( #5791 )
2019-05-14 16:20:35 -07:00
Daniel Nelson
22ab649261
Listen before leaving start in statsd ( #5628 )
2019-03-26 18:11:56 -07:00
Trevor Pounds
ee056278f5
Enable gofmt code simplification ( #4887 )
2018-10-19 13:32:54 -07:00
Daniel Nelson
41d528c8ce
Split parser/serializer docs ( #4690 )
2018-09-17 11:45:08 -07:00
Daniel Nelson
e2b1a6bc89
Add read_buffer_size option to statsd input ( #4598 )
2018-08-27 14:47:04 -07:00
Daniel Nelson
78d4a95ce6
Test using Go 1.8-1.10; official builds with 1.10 ( #4041 )
2018-04-18 16:14:06 -07:00
Jorge Canha
cd620ac144
Add keep alive support to the TCP mode of statsd ( #3781 )
2018-02-15 20:04:49 -08:00
Jacob McCann
666eb47613
Listen on localhost interface in tests ( #3667 )
2018-01-12 12:08:19 -08:00
Maximilien Richer
5f215c22fe
Fix typos in comments ( #3415 )
2017-10-31 17:00:06 -07:00
Craig Wickesser
246ffab3e0
Add UDP IPv6 support to statsd input ( #3344 )
2017-10-16 14:18:36 -07:00
Daniel Nelson
4fab572b6b
Release buffer back to pool earlier
2017-10-05 12:12:14 -07:00
Agniva De Sarker
063f3f68df
Improve statsd plugin perf by using a byte buffer pool ( #3254 )
2017-09-25 10:55:02 -07:00
Daniel Nelson
52393582d2
Unlock Statsd when stopping to prevent deadlock ( #3258 )
2017-09-22 11:45:45 -07:00
Trevor Pounds
73372872c2
Fix panic in statsd p100 calculation ( #3230 )
2017-09-14 15:27:42 -07:00
Trevor Pounds
171332c579
Add support for timing sums in statsd input ( #3234 )
2017-09-14 15:21:54 -07:00
Trevor Pounds
fa1982323a
Fix counter and gauge metric types. ( #3232 )
2017-09-14 13:05:37 -07:00
Slawomir Skowron
f3435f1c59
Add TCP listener for statsd input ( #2293 )
2017-08-08 11:41:26 -07:00
Daniel Nelson
82a04d904d
Use strings.Join in statsd input ( #2947 )
2017-06-21 16:24:23 -07:00
Cameron Sparr
200237a515
Do not create a global statsd "previous instance"
...
this basically reverts #887
at some point we might want to do some special handling of reloading
plugins and keeping their state intact, but that will need to be done at
a higher level, and in a way that is thread-safe for multiple input
plugins of the same type.
Unfortunately this is a rather large feature that will not have a quick
fix available for it.
fixes #1975
fixes #2102
2016-12-20 17:55:04 +00:00
Cameron Sparr
9866146545
Support negative statsd counters
...
closes #1898
2016-12-20 13:21:51 +00:00
Cameron Sparr
f39db08c6d
Set default values for delete_ configuration options
...
closes #1893
2016-12-13 20:00:52 +00:00
Cameron Sparr
e2f9617228
Support strings in statsd set measurements
...
closes #2068
2016-12-13 15:42:22 +00:00
Cameron Sparr
ca55c4a55d
Remove COMING SOON: multiple statsd fields
2016-10-11 10:57:34 +01:00
Cameron Sparr
c7834209d2
Major Logging Overhaul
...
in this commit:
- centralize logging output handler.
- set global Info/Debug/Error log levels based on config file or flags.
- remove per-plugin debug arg handling.
- add a I!, D!, or E! to every log message.
- add configuration option to specify where to send logs.
closes #1786
2016-10-03 17:13:03 +01:00
Vinh Quốc Nguyễn
1d10eda84e
Fix crash when allow pending messgae wasn't set ( #1785 )
...
The default is 0 so we hit a division by 0 error and crash. This checks
ensure we will not crash and `log` and continue to let telegraf run
Also we set default allow pending message number to 10000
2016-09-23 11:37:47 +01:00
Rikaard Hosein
100501ba72
statsd input plugin correctly handles colons in data-dog tag values now ( #1794 )
...
* Code correctly handles colons in tag values now
* Modified existing datadog tag test to include a tag value containing a colon
2016-09-21 14:37:42 +01:00
David Norton
e999298078
speed up statsd parser
2016-09-15 08:11:06 -04:00
David Norton
aaddbd153e
add statsd parsing benchmarks
2016-09-14 11:12:02 -04:00
Cameron Sparr
ca8fb440cc
Fix statsd scientific notation parsing
...
closes #1733
2016-09-09 15:13:11 +01:00
Cameron Sparr
06cb5a041e
statsd, udp, tcp: do not log every dropped metric.
...
also applying this change to the udp_listener and tcp_listener input
plugins
closes #1340
2016-06-10 13:47:33 +01:00
Cameron Sparr
b59266249d
README fixups for udp_listener, statsd inputs
...
closes #1119
2016-04-28 13:11:41 -06:00
Cameron Sparr
07f0d561dc
Eliminate byte buffer, copy scanner.Bytes directly
2016-04-08 09:50:03 -06:00
Cameron Sparr
be379f3dac
Refactor UDP & TCP input buffers
...
closes #991
2016-04-08 09:50:03 -06:00
Cameron Sparr
30464396d9
Make the UDP input buffer only once
2016-04-05 17:35:43 -06:00
Cameron Sparr
b1cfb1afe4
Deprecate statsd convert_names option, expose separator
...
closes #876
2016-03-28 12:13:15 -06:00
Cameron Sparr
2f215356d6
Update statsd graphite parser link to telegraf version
2016-03-28 11:57:51 -06:00
Adam Argo
e07c79259b
PR feedback changes
...
closes #927
2016-03-28 10:43:34 -06:00
Adam Argo
59085f072a
adds ability to parse datadog-formatted tags in the statsd input
2016-03-28 10:43:26 -06:00
HUANG Wei
18f4afb388
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-03-18 11:20:35 -06:00
Cameron Sparr
b5a431624b
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-03-17 10:51:35 -06:00
HUANG Wei
8e7284de5a
fixup! Close the UDP connection in Stop() of statsd input plugin.
2016-03-17 10:51:35 -06:00
HUANG Wei
b2d38cd31c
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-03-17 10:51:35 -06:00
Matt Heath
e983d35c25
Add support for multiple field names for timers
...
closes #737
2016-02-23 15:43:29 -07:00
Cameron Sparr
8d2e5f0bda
Seems to be a toml parse bug around triple pounds
2016-02-18 14:36:03 -07:00
Cameron Sparr
7def6663bd
Root directory cleanup
2016-02-18 13:37:36 -07:00
Cameron Sparr
b14cfd6c64
Add Configuration to statsd input readme
...
closes #714
2016-02-18 10:09:57 -07:00
Cameron Sparr
ee468be696
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-02-16 22:25:22 -07: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