Commit Graph

329 Commits

Author SHA1 Message Date
Joshua Powers 5506f528e5
chore: remove slow process test (#10856) 2022-03-24 11:56:32 -06:00
Joshua Powers 36d0b0ff7a
chore: update slow file rotation tests (#10857) 2022-03-24 11:56:25 -06:00
William Wilson 5992fc47ac
tests: remove redundant newlines that go 1.18 treats as errors (#10847) 2022-03-21 09:11:25 -07:00
reimda 77040ef4e9
fix: Add option to select translator (#10802) 2022-03-17 21:43:46 -06:00
reimda 35d69de1fc
fix(inputs.snmp): use the correct path when evaluating symlink (#10748) 2022-03-11 08:29:16 -07:00
reimda 79aa7f4ecf
fix: log err when loading mibs (#10735) 2022-02-28 11:37:08 -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
Mya d18ff3407d
fix: ensure folders do not get loaded more than once (#10551) 2022-02-16 12:25:20 -07:00
R290 48682ff5f9
feat: Add autorestart and restartdelay flags to Windows service (#10559) 2022-02-03 09:23:52 -07:00
Mya 84c1efbef1
fix: collapsed fields by calling more indepth function (#10430) 2022-01-27 14:38:03 -07:00
Laurent Sesquès 457c98f4c2
fix: snmp input plugin errors if mibs folder doesn't exist (#10346) (#10354) 2022-01-11 15:17:05 -07:00
Jeremy Yang 1e04157c52
feat: add compression to Datadog Output (#9963) 2022-01-07 10:38:19 -06:00
Howie 381dc22723
chore: typos across source code comments (#10361) 2022-01-05 08:20:10 -07:00
Mya 8a9fbfda67
fix: snmp marshal error (#10322) 2021-12-22 13:41:34 -07:00
Mya 1e81d98fdd
fix: panic due to no module (#10303) 2021-12-20 13:40:00 -07:00
Mya 49562e8963
fix: grab table columns more accurately (#10295) 2021-12-20 12:49:03 -07:00
Mya 973ffba9fb
fix: check index before assignment (#10299) 2021-12-20 10:52:47 -07:00
Mya e00147ded3
fix: panic is no mibs folder is found (#10301) 2021-12-17 14:30:08 -07:00
Thomas Casteleyn 7c0ffefde9
fix: inputs.snmp to respect number of retries configured (#10268) 2021-12-14 15:28:38 -07:00
Sven Rebhan 526dcb4bc8
fix: Print loaded plugins and deprecations for once and test (#10205) 2021-12-07 15:56:18 -07:00
Sven Rebhan 2d420fbd35
feat: Optimize locking for SNMP MIBs loading. (#10206) 2021-12-07 15:05:33 -07:00
reimda df6bf48f8d
feat: Implement deprecation infrastructure (#10200) 2021-12-01 12:38:43 -07:00
Mya b4ef429302
fix: extra lock on init for safety (#10199) 2021-12-01 10:02:38 -07:00
Mya 7675ce6d19
refactor: snmp to use gosmi (#9518) 2021-11-30 15:47:50 -07:00
Joshua Powers 6b51697ef0
fix: set location for timezone on failing time tests (#9877)
Resolves: #9874
2021-10-07 10:19:53 -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 3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
Marcus Ilgner ecf27ab956
Fix handling bool in sql input plugin (#9540) 2021-07-27 15:32:00 -06:00
Sebastian Spaink 2a72295734
Detect changes to config and reload telegraf (copy of pr #8529) (#9485) 2021-07-15 11:11:58 -05:00
Sven Rebhan 908ad2f6ce
Generic SQL input (#8735) 2021-06-15 13:10:52 -06:00
Jess Ingrassellino ad6d25aebc
Addresses issues in PR 4928 (#9087) 2021-06-01 17:05:49 -04:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04: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 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
Thomas Casteleyn 4584d691a7
Fix max_repetitions signedness issues #8823 (#8902) 2021-03-01 15:46:49 -05:00
Thomas Casteleyn 47e12d1981
Support more snmpv3 authentication protocols (#8850) 2021-02-24 11:44:53 -07: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
Sebastian Spaink 71be90d992
Support exclamation mark to create non-matching list in tail plugin (#8613)
* Replace exclamation mark with caret

* Update README and use table driven tests

* Use ReplaceAll instead

* Use doublestar package instead to glob filepath

* Add license

* Fix order of dependencies

* Doc improvement, maybe better then str replace?

* Forgot to remove nil from test

* Use regex instead of library

* Revert unnecessary change

* Go back to using library
replace string twice to handle edge case
2021-02-16 15:53:50 -06:00
Johannes Deger 198bcc8f36
Expose v4/v6-only connection-schemes through GosnmpWrapper (#8804) 2021-02-10 09:28:37 -07: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 d41569caed
Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
Dušan Pajin 9ee6e034fb
Input SNMP plugin - upgrade gosnmp library to version 1.29.0 (#8588) 2021-01-07 08:44:33 -07:00
David Pryor ea4feb1a07
fixed formatting (+1 squashed commit) (#8541)
Squashed commits:
[c4e2bee2] Closes #8530: Extended the internal snmp wrapper to support AES192, AES192C, AES256, and AES256C.  Updated the example configuration with the new privProtocols.  Added the warning that those protocols are only supported if you have the appropriate tooling on your system.  Added test to ensure all 4 new privProtocols could be selected and properly encrypt the priv password.
2020-12-23 10:19:53 -06:00
Paweł Żak 0fcfee0caf
Fix tests for Windows - part 1 (#8414) 2020-11-23 10:40:32 -05:00
John Ibsen d764f862b5
Influxdb v2 listener (#7828) 2020-09-14 18:41:46 -04:00
Stephen Solka 6580c6a597
prefer testify error funcs over nil checks (#7857) 2020-07-20 10:34:46 -04:00
reimda 6f9c623986
Add ifname processor plugin (#7763) 2020-07-07 15:37:53 -06:00
Steven Soroka 0efcca3c33
execd output (#7761) 2020-07-02 11:59:29 -04:00