Commit Graph

239 Commits

Author SHA1 Message Date
Sven Rebhan 7981260f22
feat(agent): Add command-line option to specify password (#12812) 2023-03-09 11:54:27 +01:00
Paweł Żak 360edd52b6
chore: Fix linter findings for errorlint (part8) (#12785)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-06 12:27:03 +01:00
Sven Rebhan f87916aaa9
feat: Plugin state-persistence (#12166) 2023-03-01 15:34:48 -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 f7949ca68a
chore: Fix linter findings for errorlint (part1) (#12701)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-22 12:57:53 +01:00
Sven Rebhan 9dfbbb29ae
feat(config): Accept durations given in days (e.g. "7d") (#12579) 2023-02-16 10:10:18 -07:00
Eng Zer Jun 4d0f05980e
test: Use `t.Setenv` to set env vars (#12621) 2023-02-10 11:46:14 +01:00
Sven Rebhan 53f36570fd
fix(secretstores): check store id format and presence (#12644) 2023-02-07 11:15: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
Joshua Powers ae2eb096cd
feat(agent): Add /etc/telegraf/telegraf.d to default config locations (#12608) 2023-02-07 17:02:01 +01:00
Sven Rebhan eb03bb5599
fix(inputs.exec): restore pre-v1.21 behavior for CSV data_format (#12533) 2023-01-26 13:51:39 -07:00
Sven Rebhan f5c2c4abf0
feat(secretstores): convert many output plugins (#12497) 2023-01-25 13:02:29 -07:00
Sven Rebhan a3e4a14233
fix(secretstores): fix handling of TOML strings (#12490) 2023-01-11 07:43:20 -07:00
Sven Rebhan e9c0487e54
fix(agent): handle float time with fractions of seconds correctly (#12491) 2023-01-11 07:42:33 -07:00
Joshua Powers 2604fb684b
fix(agent): Only set default snmp after reading all configs (#12457) 2023-01-10 19:00:15 +01:00
Sven Rebhan b5dcc49250
fix(secretstores): Fix handling of 'id' and print failing secret-store (#12468) 2023-01-09 07:27:07 -07:00
Sven Rebhan 9f55bc605e
fix(secretstores): cleanup duplicate printing (#12401) 2022-12-15 06:35:05 -07:00
Sven Rebhan c98115e744
feat: secret-store implementation (#11232) 2022-12-08 09:53:06 -07:00
Thomas Casteleyn c883673cdb
feat(agent): Deprecate active usage of netsnmp translator (#12358) 2022-12-08 07:18:09 -07:00
Sven Rebhan 337e4e34bc
chore: improve processor ordering (#12308) 2022-11-30 09:28:23 -07:00
Sven Rebhan 0f8dff9b8d
feat(serializers.json): Support serializing JSON nested in string fields (#12260) 2022-11-18 11:53:13 +01:00
Paweł Żak cdc622e9db
chore: Fix linter findings for prealloc (part1) (#12228) 2022-11-15 18:57:50 +01:00
Paweł Żak 236af553a3
chore: wrap long lines in other locations (#12219) 2022-11-11 06:32:11 -07:00
Sebastian Spaink 6a29dcba45
fix: Run processors in config order (#12113) 2022-11-08 15:16:26 -06:00
Paweł Żak 6816aefcd5
chore: fix linter findings for unparam and revive.unused-parameter (#12150) 2022-11-08 12:04:12 -07:00
Ilya Arkhanhelsky 9d18c973cf
fix(agent): watch for changes in configuration files in config directories (#12127) 2022-11-07 20:54:52 +01:00
Joshua Powers a536764bf1
fix(serializers.splunkmetric): provide option to remove event metric tag (#12024) 2022-11-01 06:41:46 -06:00
Paweł Żak 9d9eb403a6
chore: Review of //nolint comments (#12088) 2022-10-26 12:06:08 +02:00
Joshua Powers 73bac76268
fix(config): set default parser (#12076) 2022-10-24 13:51:07 -06:00
Sven Rebhan 87125f0524
fix(processors): Correctly setup processors (#12081) 2022-10-24 21:21:24 +02:00
Sven Rebhan 76d7a95400
fix: Restore warning on unused config option(s) (#12063) 2022-10-21 11:09:20 +02:00
Paweł Żak 85b7590ff9
chore: resolve linter issues for confusing-naming and confusing-results (#11956) 2022-10-12 13:19:47 -06:00
Sebastian Spaink b7591fd67d
chore: Resolve linter issues in config.go and config_test.go (#11929) 2022-10-04 17:26:02 +02:00
Sven Rebhan 8a9c2eec85
chore(processors): Convert processors to `ParserPlugin`s (#11600) 2022-09-26 22:24:34 +02:00
Joshua Powers d091a59e66
fix: re-allow specifying the influx parser type (#11806) 2022-09-21 13:02:41 -06:00
Sven Rebhan 3b3584b40b
fix(parsers): Memory leak for plugins using ParserFunc. (#11815) 2022-09-16 08:50:26 -06:00
Sebastian Spaink b5f7ca4e08
fix: Clear error message when provided config is not a text file (#11787) 2022-09-13 11:43:03 -05:00
Fritz Reichwald ca32cdc6e6
fix: add missing entry json_transformation to missingTomlField (#11779) 2022-09-09 07:26:12 -06:00
Sebastian Spaink a57434eb4e
feat: Migrate to urfave/cli (#11700) 2022-08-24 21:46:58 -05:00
Sven Rebhan f1ce84f02d
feat: tool to build custom Telegraf builds (#11524) 2022-08-19 13:38:03 -06:00
Conor Evans b76d794968
feat(serializers.prometheus): Provide option to reduce payload size by removing HELP from payload (#11690) 2022-08-18 09:22:40 +02:00
Sven Rebhan 09eb7ee111
chore: Move aws credentials to plugins/common. (#11681) 2022-08-16 19:04:30 +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
Sven Rebhan 3ad9fe73ba
chore: More parser cleanup (#11532) 2022-07-28 15:30:36 -05:00
Sven Rebhan 9f3a7414a9
feat(parsers.json): Allow JSONata based transformations in JSON serializer (#11251) 2022-07-21 18:37:36 +02:00
Joshua Powers 0fced8872a
chore: Update CRLF line endings in agent.conf to LF (#11501) 2022-07-14 10:55:26 +02:00
reimda c25f9a0e83
fix: Update prometheus parser to be a new style parser plugin (#11440) 2022-07-06 10:07:53 -06:00
Sven Rebhan 7d83b076c2
fix: add reset-mode flag for CSV parser (#11288) 2022-06-30 12:11:25 -06:00
Sven Rebhan f8766bc1b1
feat: Migrate dropwizard parser to new style (#11371) 2022-06-29 17:11:27 -05:00
Sven Rebhan 9ea9314e27
feat: Migrate logfmt parser to new style (#11366) 2022-06-29 23:31:22 +02:00
Sven Rebhan e5bcc274ca
fix: Bring back old xpath section names (#11335) 2022-06-29 23:30:58 +02:00
Sven Rebhan e710192dc9
feat: Migrate graphite parser to new style (#11405) 2022-06-29 23:08:05 +02:00
Sebastian Spaink b638c5353f
feat: migrate form_urlencoded parser to new style (#11381) 2022-06-29 13:08:12 -06:00
reimda bd516ae587
chore: move printing of sample config file out of config.go (#11409) 2022-06-29 11:59:58 -06:00
Sebastian Spaink bf4e0500f7
feat: Migrate collectd parser to new style (#11367) 2022-06-27 13:05:19 -06:00
Sven Rebhan 3f114e0921
feat: Migrate json_v2 parser to new style (#11343) 2022-06-22 13:50:43 -06:00
Sven Rebhan 48fa1990ee
feat: Add CSV serializer (#11307) 2022-06-22 21:06:50 +02:00
telegraf-tiger[bot] 38c5ec1f05
docs: Update etc/telegraf.conf and etc/telegraf_windows.conf (#11351)
Co-authored-by: Tiger Bot <>
Co-authored-by: Sebastian Spaink <sspaink@influxdata.com>
2022-06-22 11:25:16 -05:00
Sven Rebhan c46f42f797
feat: Migrate json parser to new style (#11226) 2022-06-22 09:56:51 -06:00
skillor 336ae2f110
chore: move agent config into seperate file (#11337) 2022-06-22 09:30:43 -05:00
Sebastian Spaink 478edd36c8
fix: Prevent concurrent map writes to c.UnusedFields (#11311) 2022-06-16 07:04:45 -05:00
Sven Rebhan 0d96968819
feat: Migrate xpath parser to new style (#11218) 2022-06-08 13:39:02 -06:00
Thomas Casteleyn 6dc2b99549
style: align plugin renaming (#10868) 2022-04-28 13:40:34 -06:00
Sebastian Spaink 5d6748fcb5
feat: generate the plugins sample config (#10886) 2022-04-05 17:11:09 -05:00
Joshua Powers fba9769720
fix: default value for logfile rotation interval (#10883) 2022-03-29 15:05:10 -06:00
Sven Rebhan 6f0c5afe48
fix: fix handling of imports in protocol-buffer definitions (#10798) 2022-03-23 09:28:17 -06:00
reimda d8bd44abe1
fix: change name of snmp translator setting (#10872) 2022-03-23 09:27:58 -06:00
reimda 77040ef4e9
fix: Add option to select translator (#10802) 2022-03-17 21:43:46 -06:00
Joshua Powers 8701ed173a
fix: update the precision parameter default value (#10814) 2022-03-16 07:18:27 -06:00
Sebastian Spaink b526945c64
fix(parsers.json_v2): Check if gpath exists and support optional in fields/tags (#10799) 2022-03-11 12:51:37 -07:00
Joshua Powers 1560346402
fix: update parsing logic of config.Duration (#10803) 2022-03-11 08:15:04 -07:00
Joshua Powers 40ed7fb693
feat(parsers.influx): New influx line protocol via feature flag (#10749) 2022-03-10 15:09:58 -07:00
Joshua Powers 4aa87229e6
docs: better specify agent precision is integer + unit (#10746)
Fixes: #10734
2022-03-03 08:20:02 -07:00
Thomas Casteleyn a4f6b27bd5
style: Add deprecation notices to plugin options (#10616) 2022-03-01 15:05:53 -07:00
Sven Rebhan 9387fb602d
feat: Add tag batch-processing to XPath parser (#10585) 2022-02-24 15:09:33 -07:00
Sebastian Spaink 10cc56039a
fix: Revert "fix: error msg for missing env variables in config (#10681)" (#10727) 2022-02-23 15:48:11 -06:00
Paweł Żak f3904d3e2a
fix: Linter fixes for config/config.go (#10710) 2022-02-22 18:47:04 -07:00
Sebastian Spaink 063ef6d517
fix: error msg for missing env variables in config (#10681) 2022-02-22 11:51:07 -07:00
Sven Rebhan 5479df2eb5
feat: collection offset implementation (#10545) 2022-02-15 10:39:12 -07:00
Sven Rebhan 437d3b0773
fix: Improve parser tests by using go-cmp/cmp (#10497) 2022-02-10 15:01:19 -07:00
Sebastian Spaink 75946f56f1
fix(parsers.json_v2): allow optional paths and handle wrong paths correctly (#10468) 2022-02-03 15:08:09 -07:00
Sven Rebhan bf447f4488
docs: Update deprecation readme (#10529) 2022-01-27 09:59:33 -06:00
Josef Johansson eeb5d0ea3d
feat: check TLSConfig early to catch missing certificates (#10341)
Co-authored-by: Josef Johansson <josjoh@oderland.se>
2022-01-18 16:04:09 -06:00
zachmares 3574a8679b
fix: wavefront_disable_prefix_conversion case missing from missingTomlField func (#10442) 2022-01-13 15:46:18 -07:00
Sven Rebhan 193dc450c3
feat: Parser plugin restructuring (#8791) 2022-01-12 15:54:42 -07:00
Alberto Fernandez a202f68333
feat: add option to skip errors during CSV parsing (#10267) 2021-12-22 13:07:14 -07:00
Sven Rebhan d1d81b71ac
fix: Fix panic in parsers due to missing Log for all plugins using SetParserFunc. (#10288) 2021-12-16 08:20:04 -07:00
crflanigan e7e50a8883
feat: Add option to disable Wavefront prefix conversion (#10252) 2021-12-14 15:04:30 -07:00
reimda df6bf48f8d
feat: Implement deprecation infrastructure (#10200) 2021-12-01 12:38:43 -07:00
Paweł Żak 8e85a67ee1
fix: Linter fixes for plugins/parsers/[a-z]* (#10145) 2021-11-24 11:52:51 -07:00
rentiansheng cd0a7cd52f
fix: input plugin statsd bug (#10116) 2021-11-23 15:05:23 -07:00
reimda 8710d2353e
fix: skip knxlistener when writing the sample config (#10131) 2021-11-18 13:56:18 -07:00
Alexander Krantz 06f2a37b4a
chore: Update to AWS SDK v2 (#9647) 2021-10-21 16:32:10 -05:00
Sebastian Spaink fde637464a
fix: migrate aws/credentials.go to use NewSession, same functionality but now supports error (#9878) 2021-10-07 15:47:56 -05:00
Yuji Kawamoto d2a25456d5
feat(prometheus): add ignore_timestamp option (#9740) 2021-10-05 15:11:46 -06:00
Sebastian Spaink df5c19c17e
feat (parser.json_v2): Support defining field/tag tables within an object table (#9449) 2021-10-04 13:19:06 -05:00
Eng Zer Jun 6a3b27126a
refactor: move from io/ioutil to io and os package (#9811) 2021-09-28 15:16:32 -06:00
Joshua Powers 3eebfd2f0f
feat: add Linux Volume Manager input plugin (#9771) 2021-09-21 15:51:43 -06:00
Heiko Schlittermann b9aa9839fb
feat: Add json_timestamp_layout option (#8229) 2021-09-21 09:12:44 -06:00
Alexander Krantz de01d37a36
feat: Support AWS Web Identity Provider (#9411) 2021-08-03 17:29:26 -04:00
Thomas Casteleyn c56a652b4d
Improve documentation (#9457) 2021-07-06 17:20:53 -04:00
Sven Rebhan 25413b2b6d
XPath parser extension to allow parsing of JSON, MessagePack and Protocol-buffers (#9277) 2021-07-01 16:48:16 -04:00
Sebastian Spaink 885252d388
New JSON Parser (#9246) 2021-06-10 13:22:18 -06:00
Alexey Kuzyashin 58a90783f5
Add telegraf url env var (#8987) 2021-06-02 21:22:15 -06:00
Alexander Krantz 58479fdb05
Fix reading config files starting with http: (#9275) 2021-05-26 09:13:50 -07:00
Greg Linton df47b41668
Allow more characters in graphite tags (#9249) 2021-05-18 12:29:30 -04:00
David Bennett 1a86fd1a2d
Config Option to Enable Logging with Local Time (#9123)
* Configurable local time logging

* make timezone configurable

* Address linter feedback.

* update with example
2021-04-16 14:39:19 -04:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
Patryk Małek 2b41a1e1f4
Carbon2 serializer: sanitize metric name (#9026) 2021-04-08 10:31:31 -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
David Bennett c905116ade
Add 'field name' config option to customize field name when using Value parser. (#8979) 2021-03-11 21:53:32 -05:00
reimda 431d06acc0
Add XML parser using XPath queries (#8931) 2021-03-03 13:26:09 -07:00
David Bennett 956350db94
Display error message on badly formatted config string array (eg. namepass) (#8910)
* add error when expected string array is not in string array format

* add word
2021-02-26 13:58:13 -05:00
Helen Weller 71a3a3cf20
Add default retry for load config via url (#8803) 2021-02-12 11:38:40 -05:00
Helen Weller 6804cfcfef
adds missing & to flush_jitter output ref (#8838) 2021-02-09 14:12:49 -05:00
Paweł Żak ba66d4facb
Revive fixes - part 1 (#8797)
* Revive fixes regarding following set of rules:
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.error-return]
[rule.error-strings]
[rule.indent-error-flow]
[rule.errorf]
2021-02-08 11:18:40 -05:00
Helen Weller 3b87438dea
Added ability to define skip values in csv parser (#8627) 2021-01-11 13:53:06 -05:00
Paweł Żak 0fcfee0caf
Fix tests for Windows - part 1 (#8414) 2020-11-23 10:40:32 -05:00
Steven Soroka 6b3f653088
fix config issue with tags (#8419) 2020-11-16 16:57:50 -05:00
Steven Soroka 5af6861ebb
fixes config issue #8362 (#8364) 2020-11-04 18:23:52 -05:00
Steven Soroka 998ae54d36
shorten config (#7583) 2020-11-03 16:40:57 -05:00
simnv 1696cca283
Fix using empty string as the namespace prefix in azure_monitor output plugin (#8282)
* Fix using empty string as the namespace prefix

Fixes #8256

* Test using empty string as the namespace prefix
2020-10-20 10:16:22 -04:00
piotrwest 7c2c2c5d8b
Add the Timestream Output Plugin (#8239)
Co-authored-by: Piotr Westfalewicz <westpiot@amazon.com>
2020-10-15 13:51:17 -04:00
sambrolia 94481f6678
Sort plugin name lists for output (#8127) 2020-09-15 16:55:23 -04:00
Patryk Małek 5534b9955c
Carbon2 configuration option - include field in metric name (#8094) 2020-09-10 12:14:11 -04:00
Thomas Casteleyn 073a9beee3
[agent] Cleanup duplicates in loaded plugins list (#7852) 2020-08-19 18:18:52 -04:00
Steven Soroka 11afd42617
fix issue with shim use of config.Duration (#7996) 2020-08-18 14:20:31 -04:00
Steven Soroka 9f6b7092f2
fix issue with execd restart_delay being ignored (#7867) 2020-07-21 13:06:33 -04:00
Daniel Nelson 1b1382cabf
Set user agent when requesting http config (#7752) 2020-07-01 12:52:05 -07:00
Steven Soroka 12bf382e88
Rename cisco_telemetry_gnmi input to gnmi (#7695) 2020-06-30 23:19:16 -07:00
Daniel Nelson 0fbe0b3968
Allow overriding the collection_jitter and precision per input (#7762) 2020-06-30 23:15:11 -07:00
Daniel Nelson cfc1818a5e
Return on toml parse errors instead of logging (#7751) 2020-06-26 11:30:29 -07:00
Daniel Nelson 94fa7067ad
Mark unused agent options as deprecated 2020-06-16 09:26:24 -07:00
Haidlir Naqvi adbc425961
Add timezone configuration to csv data format (#7619) 2020-06-08 14:52:46 -07:00
Steven Soroka 741ea839d2
add support for streaming processors (#7634) 2020-06-05 10:43:43 -04:00
ihard 94c75b51a8
Add configurable separator graphite serializer and output (#7545) 2020-05-20 17:15:18 -07:00
Josh Soref 2c56d6de81
Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
Steven Soroka b73a232a6a
Support Go execd plugins with shim (#7283) 2020-05-04 14:09:10 -04:00