Commit Graph

197 Commits

Author SHA1 Message Date
Paweł Żak c76f319b84
chore: Remove `revive:unhandled-error` - `errcheck` is more flexible (#13008) 2023-04-03 07:19:43 -06:00
Paweł Żak 0129abbd1e
chore: Enable G102 rule for gosec (#12976)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-29 09:47:57 +02:00
Joshua Powers 3415cc8c80
chore: Fix gosec G102 issues (#12923) 2023-03-28 11:40:29 +02:00
Sven Rebhan bd5f6b7c7c
feat(common.opcua): Add support for secret-store secrets (#12863) 2023-03-21 08:58:06 -06:00
Sven Rebhan 1eb70808d0
feat(common.oauth): Add audience parameter (#12821) 2023-03-13 12:17:37 +01:00
Paweł Żak d59ea7d0ce
chore: Remove usages of github.com/pkg/errors dependency (archived) (#12787)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-03 19:04:41 +01:00
Sven Rebhan 6e3af9d06c
feat(outputs.mqtt): Add option to specify topic layouts (#12697) 2023-02-28 11:44:35 -07:00
Sven Rebhan 9e519def51
feat(common.tls): add enable flag (#12727) 2023-02-27 11:22:40 -07:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Paweł Żak 4201f24020
chore: Fix linter findings for errorlint (part2) (#12702)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-22 12:08:46 +01:00
Sven Rebhan 75cbda186c
chore(mqtt): unify input and output plugin's MQTT client (#12683) 2023-02-17 12:59:02 -07:00
Paweł Żak 1260b4523b
chore: Fix linter findings for tenv (#12622)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-07 17:12:42 +01:00
Paweł Żak 9a0cecc788
chore: Fix linter findings for nolintlint (part3) (#12613)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-07 17:06:12 +01:00
Viraj Sinha e96a49ea83
fix(inputs.opcua): fix opcua and opcua-listener for servers using password-based auth (#12529) 2023-01-30 08:14:58 -07:00
Paweł Żak d9d9cd4c0b
chore: fix linter findings for nolintlint part 1 (#12427) 2023-01-25 13:28:13 -07:00
Joshua Powers f08cac618c
fix(common.cookie): Allow any 2xx status code (#12515) 2023-01-18 11:19:19 +01:00
Sven Rebhan 63ab159481
feat(secretstores): add support for additional input plugins (#12067) 2023-01-09 09:17:23 -07:00
Sven Rebhan 6fb08bb3da
feat(kafka): Add keep-alive period setting for input and output. (#12459) 2023-01-05 16:48:31 +01:00
Paweł Żak 86cd0c0c24
chore: Fix linter findings for makezero (part4) (#12410) 2022-12-20 11:42:09 +01:00
Sven Rebhan 7fb90a2d9c
chore(linter): disable linter warning for freeze() in starlark (#12406) 2022-12-16 06:26:19 -07:00
Sylvain Bruyère 35b5476c83
fix(common.opcua): parse full range of status codes with uint32 (#12376) 2022-12-12 09:54:21 -07:00
Paweł Żak 4717a03509
chore: Fix linter findings for makezero (part2) (#12362) 2022-12-09 16:38:37 +01:00
Joshua Powers da0c186a71
feat(tls): allow setting renegotiation method (#12302) 2022-12-06 20:09:58 -07:00
Trevor North 70b33c2649
feat(inputs.kafka_consumer): Add sarama debug logs (#12304) 2022-12-05 21:54:08 +01:00
Paweł Żak cdc622e9db
chore: Fix linter findings for prealloc (part1) (#12228) 2022-11-15 18:57:50 +01:00
Paweł Żak 6816aefcd5
chore: fix linter findings for unparam and revive.unused-parameter (#12150) 2022-11-08 12:04:12 -07:00
Paweł Żak 8203b503b7
chore: Wrap long lines in plugins/common (#12182) 2022-11-08 18:35:08 +01:00
Viraj Sinha e42b0832e0
fix: Add support for opcua datetime values (#12101) 2022-11-07 20:35:53 +01:00
Paweł Żak 6659e3d62a
chore: Use depguard instead of revive.imports-blacklist (#12153) 2022-11-07 11:34:05 +01:00
reimda 494f558b4e
feat: Add exponential backoff when connecting or reconnecting and allow plugin to start without making initial connection (#12111) 2022-11-03 08:01:22 -05:00
Mya 2bcb4d9f52
chore(common.shim): check err of s.writeProcessedMetrics for the linter (#12103) 2022-10-26 20:50:38 +02:00
Paweł Żak 9d9eb403a6
chore: Review of //nolint comments (#12088) 2022-10-26 12:06:08 +02:00
Lars Stegman 739f800b53
feat(inputs.opcua_listener): OPC UA Event subscriptions (#11786) 2022-10-25 08:06:08 -06:00
Sebastian Spaink f38c9f2a45
chore: Resolve deprecated linter issues (#12051) 2022-10-19 18:32:53 +02:00
Paweł Żak 85b7590ff9
chore: resolve linter issues for confusing-naming and confusing-results (#11956) 2022-10-12 13:19:47 -06:00
Paweł Żak 9ff5cda6e8
chore: Resolve linter issues for plugins/common package (#11964)
Co-authored-by: Pawel Zak <Pawel Zak>
2022-10-11 11:31:44 -05:00
Joshua Blanchard 2b03cd9151
fix(common.kafka): Enable TLS in Kafka plugins without custom config (#11519) 2022-09-26 12:14:14 -06:00
Sven Rebhan 78bdf9a1b2
chore(inputs.jolokia2): Move agent and proxy one level up (#11637) 2022-09-09 17:48:15 -06:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Sven Rebhan 09eb7ee111
chore: Move aws credentials to plugins/common. (#11681) 2022-08-16 19:04:30 +02:00
Sven Rebhan e96bbe83c5
feat(common.tls): Implement minimum TLS version for clients (#11493) 2022-08-09 13:36:47 +02:00
Joshua Powers b5076363e4
fix: use reader over readcloser, regen cookie-jar (#11482) 2022-07-18 13:05:28 -06:00
Joshua Powers 508483157d
fix: allow 201 for cookies, update header docs (#11472) 2022-07-08 15:10:46 -06:00
Sebastian Spaink 9744c3a6a2
feat: Migrate influx and influx_upstream parsers to new style (#11432) 2022-07-06 15:23:13 -05:00
Alexander Krantz 65a60855a0
feat(x509_cert): add proxy support (#9319) 2022-06-21 15:50:06 -05:00
Julien Pivotto fa64e26a0c
chore: fix typo (recieve -> receive) (#11341) 2022-06-21 10:36:41 -06:00
Joshua Powers 58e01f72b2
test: add circle ci integration testing on PRs (#11246) 2022-06-03 10:33:28 -06:00
crflanigan 7d2016b84c
feat: Google API Auth (#11084) 2022-05-24 17:33:02 -06:00
RaviKiran K 5a71d03e63
feat(outputs.http): Support configuration of `MaxIdleConns` and `MaxIdleConnsPerHost` (#10954) 2022-04-27 15:24:27 -05:00
Sebastian Spaink 5d6748fcb5
feat: generate the plugins sample config (#10886) 2022-04-05 17:11:09 -05:00
Alexander Krantz f76729cfb9
feat: HTTP basic auth for webhooks (#9332)
Co-authored-by: Sebastian Spaink <3441183+sspaink@users.noreply.github.com>
2022-03-04 09:51:01 -06:00
Thomas Casteleyn a4f6b27bd5
style: Add deprecation notices to plugin options (#10616) 2022-03-01 15:05:53 -07:00
Paweł Żak 77390b6495
fix: linter fixes for "import-shadowing: The name '...' shadows an import name" (#10689) 2022-02-22 08:11:30 -07:00
Alexander Olekhnovich 0d529d89ea
feat: add socks5 proxy support for kafka output plugin (#8192) 2022-02-16 08:33:03 -07:00
Sebastian Spaink 0ca1cd64b4
fix: address flaky tests in cookie_test.go and graylog_test.go (#10326) 2022-01-18 16:55:47 -06:00
Conor Evans 48b981bd4e
feat: support headers for http plugin with cookie auth (#10404) 2022-01-11 15:31:28 -07:00
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