Commit Graph

41 Commits

Author SHA1 Message Date
Howie 381dc22723
chore: typos across source code comments (#10361) 2022-01-05 08:20:10 -07:00
Paweł Żak 1143a50da3
chore: Forbids "log" package only for aggregators, inputs, outputs, parsers and processors (#10191)
Co-authored-by: Pawel Zak <Pawel Zak>
2021-12-03 11:50:51 -06:00
Paweł Żak 3627961add
fix: Linter fixes for plugins/common/[a-z]* (#10189)
Co-authored-by: Pawel Zak <Pawel Zak>
2021-11-30 15:46:46 -06:00
Joshua Powers d5d1f310da
chore: clean up all markdown lint errors in common plugins (#10155) 2021-11-24 11:45:38 -07:00
Nicolas Filotto 4f2ade5305
feat: Add support of aggregator as Starlark script (#9419) 2021-11-18 15:37:59 -07:00
David B b9c444bae8
fix: update BurntSushi/toml for hex config support (#10089) 2021-11-11 16:09:51 -07:00
bustedware 7d6672c53a
feat: add mongodb output plugin (#9923) 2021-10-28 14:42:49 -06:00
Josef Johansson 76251d34f3
feat: plugins/common/tls/config.go: Filter client certificates by DNS names (#9910) 2021-10-25 08:47:26 -06:00
Gerald Quintana 8265969f52
feat: Kafka Add metadata full to config (#9833) 2021-10-21 15:32:39 -06:00
Eng Zer Jun 6a3b27126a
refactor: move from io/ioutil to io and os package (#9811) 2021-09-28 15:16:32 -06:00
Sebastian Spaink 167b6e0075
fix: race condition in cookie test (#9659) 2021-09-02 00:21:53 -05:00
Sebastian Spaink 02ccbec348
fix: cookie test (#9608) 2021-08-17 17:22:14 -04:00
Jacob Hochstetler 4591c62cfc
Http plugin add cookie auth (#9395) 2021-07-13 15:58:49 -06:00
Steven Soroka ee44aee1ca
clarify docs around shim plugin loading 2021-06-03 09:53:15 -04:00
David Bennett 8bb388584d
Add OAuth2 to HTTP input (#9138)
* add oauth2 to http input

* linter fixes

* add http config to common plugin

* address linter changes

* Update README.md

* add log for user if fields are missing

* add correct logger

* alter output plugin as well

* fix formatting

* add oauth2 separate package

* fix package naming

* remove unnecessary logger
2021-04-23 09:37:27 -04:00
Steven Soroka 1cfe8da93f
clarify pollIntervalDisabled message (#9158)
closes  #9155
2021-04-20 11:24:24 -04:00
Dominic Tootell f3229f5ec1
Change to NewStreamParser to accept larger inputs from scanner (#8892)
* change to NewStreamParser to accept larger inputs from scanner

* fmt changes
2021-04-13 17:13:46 -04:00
David Bennett 842a788022
Remove error return type from metric.New method (#9116)
* Remove error return type from metric.New method.

* Formatting changes for linter + gofmt

* Additional linter fixes.

* More linter fixes.

* Linter fix.

* address comments
2021-04-13 14:40:03 -04:00
Paweł Żak 099ccda3f9
Linter fixes - gosimple (#9046) 2021-03-25 13:57:01 -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 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
Helen Weller 372004a993
Fix max open requests to one if idempotent writes is set to true (#8954) 2021-03-08 11:38:35 -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
Patryk Małek 7e78a08eba
AWS EC2 metadata processor Using StreamingProcessor (#8707) 2021-02-04 17:02:27 -05:00
Andreas Fuchs 3c9c013f4b
common/tls: Allow specifying SNI hostnames (#7897)
* tls_config: Allow specifying SNI hostnames

Add a new configration field `tls_server_name` that allows specifying
the server name that'll be sent in the ClientHello when telegraf makes
a request to TLS servers. This allows checking against load balancers
responding to specific hostnames that otherwise wouldn't resolve to
their addresses.

Add the setting to the documentation of common TLS options, as well as
to the http_response plugin.

Fixes #7598.

* Adjust the x509_cert to allow usage of tls_server_name

This plugin has been using ServerName previously, and will have to
deal with the new setting, too: Extract the server-name choosing into
a method & add a test to ensure we choose the right value (and error
under the right circumstances). Also document that the two settings
are mutually exclusive.

* Improve documentation on what we try to accomplish in the nil return

Also get rid of the TODO, as I am fairly certain this behavior is the
correct one.

* Remove unused struct field in tests
2020-12-23 13:39:43 -06:00
Steven Soroka 4090c77275
proxy support for http input (#8477) 2020-11-26 17:16:25 -05:00
Steven Soroka 8b30bb9534
Enable kafka zstd compression and idempotent writes (#8435) 2020-11-23 15:51:58 -05:00
Steven Soroka e83a165635
kafka sasl-mechanism auth support for SCRAM-SHA-256, SCRAM-SHA-512, GSSAPI (#8318) 2020-10-28 12:16:59 -04:00
Steven Soroka 796b3b8d41
fix issue with loading processor config from execd (#8274) 2020-10-15 13:46:13 -04:00
Paweł Żak c8e69aca3c
Fixed almost all bugs found by LGTM analysis platform (#8240) 2020-10-08 11:20:35 -04:00
Steven Soroka 3278054c5c
fix bug in shim logger affecting AddError (#8052) 2020-08-28 18:45:38 -04:00
Steven Soroka 11afd42617
fix issue with shim use of config.Duration (#7996) 2020-08-18 14:20:31 -04:00
Russ Savage 75e701c288
fix(readmes): adding code block annotations (#7963) 2020-08-10 15:50:48 -04:00
reimda c7236ebbe5
Fix tail following on EOF (#7927) 2020-07-31 13:31:02 -06:00
Steven Soroka 569584d7df
shim logger improvements (#7865) 2020-07-22 14:29:50 -04:00
Steven Soroka db02ae5829
fix bug with loading plugins in shim with no config (#7816) 2020-07-10 15:05:26 -04:00
Daniel Nelson be77fbab31
Support utf-16 in file and tail inputs (#7792) 2020-07-07 12:43:32 -07:00
Steven Soroka df26b037cb Shim refactor to support processors and output 2020-07-02 18:55:14 -04:00
Daniel Nelson c73ed8ca6c
Export internal/tls package for use in execd plugins (#7697) 2020-06-25 11:44:22 -07:00
Daniel Nelson 2486006495
Add kafka SASL version control to kafka_consumer (#6350) 2020-01-02 16:27:26 -08:00
Daniel Nelson 17c4e0b06f
Improve ipvs input error strings and logging (#6530) 2019-10-21 21:27:05 -07:00