Commit Graph

868 Commits

Author SHA1 Message Date
Paweł Żak 9608d118bd
chore: Don't use all default exclude patterns for golangci-lint (#12969)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-29 09:50:00 +02:00
Joshua Powers 3c8277d502
fix(outputs.graphite): Add custom regex to outputs (#12908) 2023-03-22 13:32:41 +01:00
Joshua Powers 7284c126ce
fix(serializers.graphite): Allow for specifying regex to sanitize (#12835) 2023-03-14 11:46:44 +01:00
Jacob Marble 240c239321
chore(deps): Update OpenTelemetry from 0.3.1 to 0.3.3 (#12840) 2023-03-13 12:22:03 +01:00
Sven Rebhan 1eb70808d0
feat(common.oauth): Add audience parameter (#12821) 2023-03-13 12:17:37 +01:00
feld f48b834a14
docs(outputs.postgresql): Improve TimescaleDB config examples (#12829) 2023-03-09 16:05:28 -07: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
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Paweł Żak 39d6b1d5cb
chore: Fix linter findings for errorlint (part3) (#12704)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-22 13:38:16 +01:00
Sven Rebhan 75cbda186c
chore(mqtt): unify input and output plugin's MQTT client (#12683) 2023-02-17 12:59:02 -07:00
Joshua Powers 0fd618ef84
docs(outputs.postgresql): Update URL for sql template (#12691) 2023-02-17 09:46:15 +01:00
Jose Luis Ordiales Coscia 8896538f5d
feat(outputs.mqtt): add support for MQTT 5 publish properties (#12678)
Co-authored-by: Jose Luis Ordiales <jose.luis@evergen.energy>
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2023-02-16 10:55:24 +01:00
dependabot[bot] 0244614b71
chore(deps): Bump github.com/gofrs/uuid from 4.3.1+incompatible to 5.0.0 (#12668) 2023-02-16 10:50:47 +01:00
Joshua Powers fa26b6498b
docs: remove trailing whitespace (#12660) 2023-02-09 12:35:18 -07:00
Sven Rebhan 200044a495
docs: fix remaining markdownlinter issues (#12658) 2023-02-09 10:57:08 -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
Paweł Żak 257083dba8
chore: bump go to 1.20 for golangci-lint-action (#12614) 2023-02-03 14:35:29 -07:00
Paweł Żak 17c77df228
chore: Bump golangci-lint from v1.50.1 to v1.51.0 (#12605)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-03 10:27:47 +01:00
Sven Rebhan dfc5cdf924
docs: indicate secret-store support in plugin READMEs (#12592) 2023-02-02 09:31:23 -07:00
Paweł Żak 473aa0de17
chore: Lint whole codebase both in PR and master branch (#12590) 2023-02-02 14:16:21 +01:00
Paweł Żak e84bc0c590
chore: clean up import shadowing issues (#12588) 2023-02-01 11:21:38 -07:00
Sven Rebhan e6de0cc9c2
chore(internal.gzip): cleanup CompressWithGzip (#12587) 2023-02-01 11:20:11 -07:00
Joshua Powers b20e490031
fix(outputs.prometheus_client): Expire with ticker, not add/collect (#12560) 2023-01-31 10:38:10 +01:00
Ben Tasker bd77a425ba
docs(outputs.elasticsearch): detail overriding timezone (#12551) 2023-01-25 13:16:55 -07:00
Joshua Powers c030e31aed
docs(outputs.mqtt): update readme to match sample config (#12552) 2023-01-25 13:11:31 -07:00
Sven Rebhan f5c2c4abf0
feat(secretstores): convert many output plugins (#12497) 2023-01-25 13:02:29 -07:00
andoks dc89a0401c
docs(outputs.mqtt): fix incorrect use of brackets (#12539) 2023-01-25 09:03:46 -07:00
Sebastian Machuca 74ed28938a
feat(outputs.mqtt): enhance routing capabilities (#12224) 2023-01-17 11:45:45 -07:00
Thomas Casteleyn 61523bd4b9
feat(tools/readme_linter): Check for global configuration section (#12426) 2023-01-12 16:55:21 +01:00
Paweł Żak 5e96009048
chore(stackdriver): Fix deprecated monitoringpb (#12424)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-01-09 20:52:53 +01: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
Joshua Powers 754ab64959
fix(outputs.loki): return response body on error (#12399) 2022-12-16 06:18:43 -07:00
Paweł Żak 4717a03509
chore: Fix linter findings for makezero (part2) (#12362) 2022-12-09 16:38:37 +01:00
Luke Winikates 19cc5a7abf
chore(outputs.wavefront): Reduce code duplication (#12332) 2022-12-07 17:04:21 +01:00
Trevor North 70b33c2649
feat(inputs.kafka_consumer): Add sarama debug logs (#12304) 2022-12-05 21:54:08 +01:00
Joshua Powers c6dbc3f689
fix(outputs.azure_data_explorer): update test call to NewSerializer (#12291) 2022-11-28 08:39:13 -07:00
asaharn 736967974b
refactor(outputs.azure_data_explorer): removed deprecated code (#11951) 2022-11-28 08:12:25 -07:00
Neelay Upadhyaya 6f407c5949
fix(output.datadog): log response in case of non 2XX response from API (#12201) 2022-11-21 21:54:24 +01:00
Paweł Żak 960a1f7b14
chore: Fix linter findings for prealloc (part3) (#12246) 2022-11-21 21:53:55 +01:00
Paweł Żak e84df8983a
chore: Fix linter findings for errname (#12253) 2022-11-21 21:11:07 +01:00
Paweł Żak 743e023f84
chore: Fix linter findings for makezero (part1) (#12254) 2022-11-21 21:07:07 +01:00
Joshua Powers bd91b2ced2
test(outputs.sql): print out what we get, bump time required (#12262) 2022-11-18 09:38:40 -07:00
Joshua Powers ea9aa38d23
test(outputs.sql): do not write to file during testing (#12203) 2022-11-18 07:22:46 -07:00
Sven Rebhan 0f8dff9b8d
feat(serializers.json): Support serializing JSON nested in string fields (#12260) 2022-11-18 11:53:13 +01:00
Sven Rebhan bc56233e1b
feat(outputs.graylog): implement optional connection retries (#11950) 2022-11-17 07:03:04 -07:00
Sven Rebhan 973db8c517
fix: Cleanup and add sample.conf embedding (#12244) 2022-11-15 17:15:35 +01:00
Paweł Żak 74703d092b
chore: Fix linter findings for prealloc (part2) (#12242) 2022-11-15 09:31:51 +01:00
feld 0132eabcf1
docs(outputs.postgresql): fix example template queries that manage a view (#12190) 2022-11-08 15:47:30 -07:00
Joshua Powers 07345e82f3
docs(outputs.kafka): specify broker behavior (#12161) 2022-11-08 14:26:24 -07: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 8e9a513157
chore: Wrap long lines in plugins/outputs (#12179) 2022-11-08 16:05:55 +01:00
Joshua Powers a1de125ace
fix(outputs.prometheus): expire during add (#12160)
fixes https://github.com/influxdata/telegraf/issues/9821
2022-11-07 12:36:34 -06:00
Joshua Powers b3a460f7e9
test(outputs.sql): simplify clickhouse test (#12189) 2022-11-07 09:06:30 -07:00
Joshua Powers f2b49ce39c
fix(outputs.yandex_cloud_monitoring): catch int64 values (#12156) 2022-11-07 07:28:49 -07:00
Paweł Żak 0955bd714f
chore: Enable asciicheck, asasalint, bidichk and exportloopref linters (#12169) 2022-11-07 11:07:10 +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
Joshua Powers 0c0c2e169a
test(outputs.sql): wait for db dump file to exist (#12149) 2022-11-02 09:05:03 -06:00
Paweł Żak e2b999267f
chore: Fix linter findings introduced in last PRs (#12131) 2022-11-01 11:27:37 +01:00
Jacob Marble 99a48f460e
chore: update OpenTelemetry v0.2.30 / v0.63.0 (#12119) 2022-10-27 21:43:47 +02:00
Joshua Powers 49ac03fa80
docs: add global configuration header (#12107) 2022-10-26 14:58:36 -05:00
Joshua Powers 526035fc6e
test(outputs.graylog): skip tcp/udp tests on windows & darwin (#12110) 2022-10-26 13:01:50 -06:00
Paweł Żak 9d9eb403a6
chore: Review of //nolint comments (#12088) 2022-10-26 12:06:08 +02:00
Joshua Powers dd802531ef
test(outputs.sql): further wait for clickhouse writes (#12086) 2022-10-24 09:17:57 +02:00
Joshua Powers d45c7c44c7
test: update integration test occurrences (#12085) 2022-10-21 14:18:15 -06:00
Sebastian Spaink f38c9f2a45
chore: Resolve deprecated linter issues (#12051) 2022-10-19 18:32:53 +02:00
Joshua Powers c5e2c7aa00
test: add additional checks, waits in integration tests (#12056) 2022-10-19 09:54:00 -06:00
Paweł Żak b1fc5254e5
chore(deps): bump testcontainers-go from 0.13.0 to 0.14.0 and address breaking change (#12039) 2022-10-18 10:18:52 -06:00
dependabot[bot] 72c8aea46d
chore(deps): bump github.com/Shopify/sarama from 1.36.0 to 1.37.2 (#11980)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mya <mlongmire@influxdata.com>
2022-10-18 09:49:10 -05:00
suprajanarasimhan 90d8f426b3
refactor: Prevent import from going the wrong way (#12004) 2022-10-13 14:11:24 -06:00
Paweł Żak 5878278fca
chore: resolve linter issues for unhandled-error (#11969) 2022-10-12 14:23:53 -06:00
R290 430ec5b960
feat(outputs.event_hubs): Expose max message size batch option (#11991) 2022-10-12 08:49:11 -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
Jacob Marble 6606c5ed33
chore: update OpenTelemetry plugins to latest release (#11943) 2022-10-05 14:03:17 -06:00
Paweł Żak dbf6796a89
fix: Setting `enable_tls` has incorrect default value (#11941)
Co-authored-by: Pawel Zak <Pawel Zak>
2022-10-05 10:07:28 +02:00
asaharn 9485e9040e
feat(outputs.azure_data_explorer): Added support for streaming ingestion for ADX output plugin (#11874) 2022-10-03 09:30:13 -06:00
Joshua Blanchard 2b03cd9151
fix(common.kafka): Enable TLS in Kafka plugins without custom config (#11519) 2022-09-26 12:14:14 -06:00
Sebastian Spaink 4913392b85
chore: Remove deprecated build tags (#11867) 2022-09-22 13:25:31 -05:00
Sven Rebhan 8e23402305
chore: remove deprecated io/ioutils (#11678) 2022-09-20 09:37:14 -06:00
Lohith 8dd7ec04c9
feat(outputs.timestream): Support ingesting multi-measures (#11385) 2022-09-20 13:45:57 +02:00
erwiese 215e8e030a
feat(inputs.prometheus): use system wide proxy settings (#11729) 2022-09-13 10:48:13 -07:00
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
Lucas Segawa 8d416c4b7a
fix(outputs.execd): Fixing the execd behavior to not throw error when partially unserializable metrics are written. (#11767) 2022-09-09 16:00:47 +02:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Joshua Powers 49cd0a8131
feat(outputs.postgresql): add Postgresql output (#11672) 2022-08-25 13:33:23 -06:00
Povilas Versockas 447e8a385e
fix: refactor telegraf version (#11656) 2022-08-17 13:08:31 -06:00
Sven Rebhan 09eb7ee111
chore: Move aws credentials to plugins/common. (#11681) 2022-08-16 19:04:30 +02:00
reimda 07179c466b
chore: Use build tags to select plugins (#11654) 2022-08-15 22:44:59 +02:00
橘子 5d669e2724
feat(outputs.iotdb): Add new output plugin to support Apache IoTDB (#11557) 2022-08-10 13:00:41 -06:00
Sven Rebhan 35803efd2f
feat(outputs.amqp): Add proxy support (#11649) 2022-08-09 16:16:44 -05:00
Povilas Versockas ce2053d26d
feat: add coralogix dialect to opentelemetry (#11622) 2022-08-08 07:39:33 -06:00
Sven Rebhan ac26d786fe
fix(outputs): Linter issues (#11595) 2022-08-03 07:20:51 -05:00
Povilas Versockas 272a0a3355
test: fix openetelemtry test (#11573) 2022-08-02 07:57:45 -06:00
Luke Winikates f0aad2f8d8
fix(outputs.wavefront): update wavefront sdk and use non-deprecated APIs (#11560) 2022-08-01 15:27:56 -06:00
reimda 6721187e2e
feat(outputs.sql): Add settings for go sql.DB settings (#11551) 2022-07-29 19:53:08 +02:00
Bruce (Zhihao) Li 5b9aee11b8
fix: Updating credentials file to not use endpoint_url parameter (#10841) 2022-07-29 08:55:11 -06:00
Cole Mackenzie af43d0183c
feat(output.mqtt): Add support for MQTT protocol version 5 (#11284) 2022-07-27 09:36:57 -06:00
Sebastian Spaink beb18d9389
feat(outputs.graphite): Retry connecting to servers with failed send attempts (#11439) 2022-07-25 13:06:30 -06:00
Sven Rebhan 9f3a7414a9
feat(parsers.json): Allow JSONata based transformations in JSON serializer (#11251) 2022-07-21 18:37:36 +02:00
Pavlo Sumkin 678e6e7a8c
feat(outputs.groundwork): Improve metric parsing to extend output (#11443) 2022-07-20 13:05:01 -06:00
Sven Rebhan ba36cfe676
feat(outputs.redistimeseries): Add integration test (#11529) 2022-07-20 07:38:04 -06:00
Guy Korland 3c5d71b7cd
feat: Add RedisTimeSeries plugin (#11054) 2022-07-19 07:08:51 -06:00
Joshua Powers acc8008fb2
test: do not have leadership election during kafka test (#11404) 2022-07-14 11:07:34 -06:00
Joshua Powers 5802df7659
chore: cleanup go.mod and dependency licences (#11503) 2022-07-14 07:59:43 -06:00
asaleh b0819baeec
feat: add Stomp (Active MQ) output plugin (#7995) 2022-07-14 07:14:41 -06:00
Markus Scholz 20acbf7090
feat: add proxy support for outputs/cloudwatch (#11399) 2022-07-13 13:04:02 -06:00
Sebastian Spaink 9744c3a6a2
feat: Migrate influx and influx_upstream parsers to new style (#11432) 2022-07-06 15:23:13 -05:00
Heiko Schlittermann f4cdda4b2a
test: exchange confused parameters (expected vs actual) (#11422) 2022-06-29 16:49:39 -05:00
Luke Winikates 6e6fba77bb
feat(outputs/wavefront): make maximum http batch size configurable (#11201) 2022-06-29 13:27:56 -06:00
Sven Rebhan 524038a1ec
fix: Sync back sample.confs for inputs.couchbase and outputs.groundwork. (#11413) 2022-06-29 09:04:28 -06:00
Sven Rebhan a049175e58
fix: Restore sample configurations broken during initial migration (#11276) 2022-06-22 13:33:58 -06:00
Sebastian Spaink 6700f0ba49
docs: Sync sample.conf for recent features (#11348) 2022-06-22 08:01:56 -05:00
Alexander Krantz 65a60855a0
feat(x509_cert): add proxy support (#9319) 2022-06-21 15:50:06 -05:00
Joshua Powers 3f65217f5e
test: mark integration tests correctly (#11317) 2022-06-16 14:10:11 -06:00
Vladislav Senkevich 2d7f2094e9
feat: add default appType as config option to groundwork output (#11300) 2022-06-15 13:25:09 -06:00
Joshua Powers 58e01f72b2
test: add circle ci integration testing on PRs (#11246) 2022-06-03 10:33:28 -06:00
Joshua Powers 9daefaba11
test: harden running of testcontainer integration tests (#11245) 2022-06-03 10:29:08 -06:00
Joshua Powers 1c61aa7fb3
test: migrate elasticsearch to testcontainers (#11207) 2022-06-02 08:20:06 -06:00
Joshua Powers 6e021b26ec
test: migrate kafka to testcontainers (#11206) 2022-06-02 07:47:44 -06:00
Ruoshan Huang 354b651bd9
fix: (outputs/sql) table existence cache (#10812) 2022-06-01 13:05:37 -06:00
Sven Rebhan 91d50ee374
fix: Update sample.conf for prometheus (#11217) 2022-06-01 09:22:25 -06:00
Joshua Powers 0147257358
test: enable logging with testcontainers (#11211) 2022-06-01 07:42:46 -06:00
Joshua Powers 1200f3c87e
test: refactor testcontainer port lookup (#11198) 2022-05-27 10:24:31 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Jacob Marble 8bf4ea8173
chore: update OpenTelmetry plugins (#11194) 2022-05-26 11:26:54 -05:00
reimda 34e5d821f7
docs: remove recommendation for prometheus metric_version=2 (#11158) 2022-05-26 10:07:44 -06:00
Eng Zer Jun d51634a613
fix(plugins/amqp): move from `streadway/amqp` to `rabbitmq/amqp091-go` (#11192) 2022-05-25 13:16:13 -06:00
Sven Rebhan d9a6d8b774
chore: embed sample configurations into README for outputs (#11182) 2022-05-25 08:48:59 -06:00
crflanigan 7d2016b84c
feat: Google API Auth (#11084) 2022-05-24 17:33:02 -06:00
Joshua Powers 5857966df1
test: migrate nsq to test containers (#11173) 2022-05-24 10:31:49 -06:00
Joshua Powers 1c41f2d1ef
feat: add field key option to set event partition key (#11076) 2022-05-24 10:01:09 -06:00
Joshua Powers dd8dd75824
test: migrate mqtt to test containers (#11172) 2022-05-24 09:30:02 -06:00
Joshua Powers 03034cd1d1
test: migrate nats to test-containers (#11170) 2022-05-24 09:29:15 -06:00
Joshua Powers 94ad7f1bfa
test: migrate crate to test-containers code (#11165) 2022-05-24 09:28:40 -06:00
Joshua Powers deb0c6e207
test: update mongodb output to use test containers (#11137) 2022-05-19 14:14:02 -06:00
Sebastian Spaink 256caede89
chore(outputs): migrate sample configs into separate files (#11131) 2022-05-18 11:30:06 -05:00
Joshua Powers d0476898e5
test: remove unecessary flag in sql input (#11115) 2022-05-17 20:30:18 +00:00
Joshua Powers c8796a71ae
fix: elasticsearch output float handling test (#11120) 2022-05-17 20:28:05 +00:00
Joshua Powers b4b52d1a6f
test: remove unused riemann from docker-compose (#11118) 2022-05-17 20:26:27 +00:00
Felix Edelmann 1d659f5fbe
test: add test for mysql gatherGlobalVariables using sql-mock (#10987) 2022-05-16 15:11:25 -06:00
lambdaq 09a863bd3d
docs: fix socket_writer output format link (#11101) 2022-05-16 13:49:35 -06:00
Joshua Powers 0d18847f59
fix: check net.Listen() error in tests (#11093) 2022-05-16 13:37:53 -06:00
Farukh Ali 906b24e31d
fix(outputs.Wavefront): If no "host" tag is provided, do not add "telegraf.host" tag (#11078)
Co-authored-by: ffaroo1 <svc-registry-github@intuit.com>
2022-05-12 10:46:28 -05:00
Eng Zer Jun 81090be35d
refactor: replace strings.Replace with strings.ReplaceAll (#11079) 2022-05-11 09:53:34 -06:00
M.D fed88fcb44
feat(exec, execd): add an option to pass a custom environment to their child process (#11049) 2022-05-10 15:34:05 -06:00
Joshua Powers e28793cff1
fix: re-init azure monitor http client on context deadline error (#11030) 2022-05-10 15:24:01 -06:00
Jimmy Rimmer eb791360c4
fix: datadog count metrics (#10979) 2022-04-27 17:04:34 -05:00
RaviKiran K 5a71d03e63
feat(outputs.http): Support configuration of `MaxIdleConns` and `MaxIdleConnsPerHost` (#10954) 2022-04-27 15:24:27 -05:00