Commit Graph

420 Commits

Author SHA1 Message Date
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
Steven Soroka d75ca67e47
Execd processor (#7640) 2020-06-26 18:18:19 -04:00
Steven Soroka 9785d3c2c6 address feedback 2020-06-26 16:38:07 -04:00
Daniel Nelson c73ed8ca6c
Export internal/tls package for use in execd plugins (#7697) 2020-06-25 11:44:22 -07:00
Steven Soroka 36e584e92f execd processor 2020-06-24 13:01:46 -04:00
Ricardo Ribalda Delgado e8461fe27a
Skip overs errors in the output of the sensors command (#7718) 2020-06-23 11:40:53 -07:00
Daniel Nelson 4e93b87085
Add support for once mode; run processors and aggregators during test (#7474) 2020-06-01 15:26:20 -07:00
Daniel Nelson d27f676091
Update to Go 1.14.3 with testing using 1.13.11 (#7564) 2020-05-26 15:40:25 -07:00
Steven Soroka 2561aac6ef
fix go version check (#7562) 2020-05-26 16:11:02 -04:00
Daniel Nelson edd8338180
Close HTTP2 connections on timeout in influxdb outputs (#7517) 2020-05-19 11:53:10 -07:00
Josh Soref bf1eb291f2
Fix assorted spelling mistakes (#7507) 2020-05-15 15:43:32 -07:00
Josh Soref 2c56d6de81
Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
Daniel Nelson fd76c8bf21
Rework plugin tickers to prevent drift and spread write ticks (#7390) 2020-05-06 11:59:16 -07:00
Daniel Nelson d16485e1a3
Fix gzip support in socket_listener with tcp sockets (#7446) 2020-05-04 16:26:05 -07:00
Steven Soroka b73a232a6a
Support Go execd plugins with shim (#7283) 2020-05-04 14:09:10 -04:00
Daniel Nelson a4eb9c2205
Use the product token for the user agent in more locations (#7378) 2020-04-21 10:02:18 -07:00
Steven Soroka 819481b195
add support for SIGUSR1 to trigger flush (#7366) 2020-04-20 13:49:10 -04:00
Ilya Antipov 0cad343de7
Support multiple templates for graphite serializers (#7136) 2020-03-31 11:30:21 -07:00
M0rdecay da9f19ca9d
Allow using name_* modificators for output plugins (#7174) 2020-03-13 15:04:23 -07:00
Daniel Nelson c50b02e58d
Fix internal metrics for output split into multiple lines (#7119) 2020-03-10 15:19:32 -07:00
Harshit Bansal 134af0fe4b
Fix log rotation to use actual file size instead of bytes written (#7133) 2020-03-10 12:07:42 -07:00
reimda a0276385b1
Refactor InfluxDB listener (#6974)
Use streaming parser in InfluxDB listener
2020-03-04 11:13:44 -07:00
Steven Soroka 2e32f894b6
Fix inconsistency with input error counting (#7077) 2020-02-25 10:40:29 -08:00
Steven Soroka 5023df08d8
resolves issues where failed api calls lead to obscure errors (#7051) 2020-02-19 21:46:08 -05:00
Daniel Nelson 38bc81e746
Fix atomic usage in tests (#6964) 2020-01-31 14:14:44 -08:00
Daniel Nelson c6519c7793
Hook up json_strict option with default of true (#6909) 2020-01-21 10:10:02 -08:00
Brad Vernon 40311dcd7a Fix missing config fields in prometheus serializer (#6823) 2019-12-26 10:15:25 -08:00
Daniel Nelson 80c5edd48e
Add prometheus serializer and use it in prometheus output (#6703) 2019-11-26 15:46:31 -08:00
Lance O'Connor bc8769ba24 Add Splunk MultiMetric support (#6640) 2019-11-18 12:38:34 -08:00
陈方舟 fa2f0fff4e Fix influxdb output serialization on connection closed (#6621) 2019-11-13 12:56:01 -08:00
dbutler-starry 2156a6242e Add support for per output flush jitter (#6603) 2019-11-12 16:43:39 -08:00
Daniel Nelson 2397c53d7d
Exclude alias tag if unset from plugin internal stats (#6571) 2019-10-23 12:40:31 -07:00
Daniel Nelson b3f20f69f5
Default logtarget to file for backwards compatibility (#6555) 2019-10-22 13:32:03 -07:00
Daniel Nelson 74c7dd3ce7
Fix logger initialization in exec input (#6492) 2019-10-07 12:18:36 -07:00
David McKay 367dee791a Add auth header only when env var is set (#6469) 2019-09-30 16:55:47 -07:00
Greg 817c9a69a9 Document and add support to input plugins for logging alias (#6357) 2019-09-23 15:39:50 -07:00
Daniel Nelson 776e92ffab
Require goplugin build flag to enable go plugin support (#6393) 2019-09-20 16:50:19 -07:00
Daniel Nelson 6dc61be6eb
Fix detection of layout timestamps (#6390) 2019-09-16 16:32:14 -07:00
Daniel Nelson 5dcd0daa42
Document the pros and cons of increasing the metric_buffer_limit 2019-09-09 17:50:46 -07:00
Vlasta Hajek 7ec54d4be9 Improve startup error reporting when ran as Windows service (#4291) 2019-08-28 14:34:44 -07:00
Mattias Jiderhamn 08b903a646 Use environment variables to locate Program Files on Windows (#6317) 2019-08-27 13:47:01 -07:00
Daniel Nelson b578586d4a
Send TERM to exec processes before sending KILL signal (#6302) 2019-08-22 10:50:02 -07:00
Daniel Nelson 94f68c06d7
Use alias name in output metric buffer stats 2019-08-21 18:06:04 -07:00
Daniel Nelson 3cdc6c32dd
Fix measurement name for write errors 2019-08-21 18:06:04 -07:00
Daniel Nelson 8b938f3bd4
Make review changes to logstash input (#6299) 2019-08-21 18:04:30 -07:00
Greg 5c8d0e3ac9 Add ability to label inputs for logging (#6207) 2019-08-21 16:49:07 -07:00
Greg 10671d2641 Stop timer when command exits in WaitTimeout (#6296) 2019-08-21 11:13:38 -07:00
Greg 819bf8e99d Add exec output plugin (#6267) 2019-08-20 17:07:24 -07:00
Stanislav Putrya 149d221191 Add capability to limit TLS versions and cipher suites (#6246) 2019-08-19 16:01:01 -07:00
Daniel Nelson 28f1bdb696
Add note to configuration about when log rotation occurs 2019-07-31 13:30:30 -07:00
pberlowski dc292b73a9 Add grace period for metrics late for aggregation (#6049) 2019-07-31 12:52:12 -07:00
Preston Carpenter 5c7c9e40ee Load external go plugins (#6024) 2019-07-29 21:34:03 -07:00
George 77b1a43539 Fix template pattern partial wildcard matching (#6135) 2019-07-19 13:14:15 -07:00
Pitxyoki 72c2ac9648 Support floats in statsd percentiles (#5572) 2019-07-09 16:50:20 -07:00
Daniel Nelson c5d8e63a0f
Fix path separator matching in filecount input (#6077) 2019-07-08 14:46:00 -07:00
Daniel Nelson a0c739eec7
Follow up work on docker_log input (#6008) 2019-06-20 11:54:12 -07:00
Daniel Nelson 9b338410cb
Rename formdata parser to form_urlencoded 2019-06-17 14:50:58 -07:00
Boris Yonchev fd9abd2166 Add formdata parser (#5749) 2019-06-17 13:34:54 -07:00
Daniel Nelson 0ff9c8ef88
Add call to optional Init function for all plugins (#5899) 2019-06-14 15:12:27 -07:00
Daniel Nelson de096428be
Run ServiceInputs during test mode; add --test-wait option (#5911) 2019-06-14 12:06:25 -07:00
Daniel Nelson f2b3b35640
Print global_tags first in sample configuration 2019-06-05 14:07:02 -07:00
Daniel Nelson 0fb9040a64
Fix double close error with log rotation (#5960) 2019-06-05 13:55:21 -07:00
Daniel Nelson 77cac557ba
Log a warning on write if the metric buffer has overflowed (#5959) 2019-06-05 12:34:45 -07:00
Daniel Nelson 6c3534a66e
Add support for remaining file rotation options (#5944) 2019-06-03 17:38:21 -07:00
Daniel Nelson 17d66b864c
Close idle connections in influxdb outputs when reloading (#5912) 2019-05-31 16:55:31 -07:00
Daniel Nelson aaaad4d217
Add health output plugin (#5882) 2019-05-29 18:31:06 -07:00
Daniel Nelson b5cd9a9ff2
Add support for gzip compression to amqp plugins (#5830) 2019-05-20 14:36:23 -07:00
Charlie Vieth 43c6d13c33 Refactor templateSpec less method (#5840) 2019-05-15 16:35:07 -07:00
Daniel Nelson e52f7056ba
Fix parse of unix timestamp with more than ns precision (#5826) 2019-05-14 11:29:44 -07:00
javicrespo 761705c299 Add syslog output plugin (#5802) 2019-05-08 11:21:51 -07:00
Daniel Nelson 74c9d7ace2
Update logfile documentation 2019-05-03 10:55:11 -07:00
javicrespo bcf7516a23 Add in process log rotation (#5778) 2019-05-03 10:25:28 -07:00
Daniel Nelson 7978ebef40
Add --service-display-name option for use with Windows service (#5770) 2019-04-30 18:34:19 -07:00
Daniel Nelson d2fbf2414a
Add --section-filter to usage 2019-04-25 20:39:41 -07:00
Greg 6436005553 Add cli support for outputting sections of the config (#5585) 2019-04-25 20:34:40 -07:00
Greg 32f0cb16f5 Update naoina/toml library dependency (#5513) 2019-04-25 20:19:58 -07:00
Daniel Nelson 2faf37e5c1
Fix docs for metric buffer limit to reflect current behavior (#5741) 2019-04-17 15:46:20 -07:00
Pierre Tessier 267a9f182b Add wavefront serializer plugin (#5670) 2019-04-05 14:46:12 -07:00
Daniel Nelson 6feb6c1853
Add support for ${} env vars in configuration file (#5648) 2019-03-29 16:02:10 -07:00
Daniel Nelson 4e3244c575
Fix aggregator window and shutdown of multiple aggregators (#5644) 2019-03-29 15:40:33 -07:00
Daniel Nelson 99a390b8e6
Fix open error handling in file output (#5540) 2019-03-22 13:59:30 -07:00
Daniel Nelson eeb0e094c2
Remove test directory with .. prefix 2019-03-18 12:47:47 -07:00
Daniel Nelson 0b5811e193
Fix panic when rejecting empty batch (#5524) 2019-03-04 12:36:19 -08:00
Daniel Nelson c57f2d9d48
Ignore tracking for metrics added to aggregator (#5508) 2019-03-01 11:21:31 -08:00
Daniel Nelson 598a79bf62
Remove 'inputs.' prefix when logging loaded inputs (#5489)
* Remove 'inputs.' prefix when logging loaded inputs

* Remove prefix from aggregators name
2019-02-26 18:31:43 -08:00
Daniel Nelson 03f40b3588
Remove prefix from aggregators name 2019-02-26 18:22:12 -08:00
Greg 85617887c4 Add option to disable timestamp adjustment in grok parser (#5488) 2019-02-26 17:35:57 -08:00
Greg Linton 8d90609198 Remove 'inputs.' prefix when logging loaded inputs 2019-02-26 17:03:13 -07:00
Douglas Drinka 1886676e14 Support configuring a default timezone in JSON parser (#5472) 2019-02-25 11:30:33 -08:00
Greg 10ac030502 Unify time parsing in json/csv parsers (#5382) 2019-02-05 17:43:35 -08:00
Daniel Nelson 1a81e49d05
Return error loading config on non-200 response 2019-02-05 15:15:58 -08:00
Greg 458d3109c0 Set skip rows and columns in csv parser (#5336) 2019-01-23 11:37:24 -08:00
Daniel Nelson b34c5e0d04
Update the buffer_size internal metric after writes (#5314) 2019-01-22 13:43:51 -08:00
Daniel Nelson da80276802
Use lifo order in metric buffer (#5287) 2019-01-15 11:48:52 -08:00
Daniel Nelson 0fd08dd65a
Add a copy of the input metric when adding to aggregator (#5266) 2019-01-08 11:56:44 -08:00
Daniel Nelson 3621bcf5a6
Add basic unittest for templating engine 2019-01-07 14:14:00 -08:00
Daniel Nelson 4fd5fa006b
Allow non-tls config downloading 2019-01-04 10:40:44 -08:00
emily f42d9378ba Add cloud_pubsub input plugin (#5136) 2019-01-03 16:20:07 -08:00
Samuel-BF f530ca6e7c Use godirwalk in globpath (#5145) 2018-12-18 14:23:25 -08:00
Daniel Nelson 544262a23a
Apply global and plugin level metric modifications before filtering (#5152) 2018-12-18 14:20:43 -08:00
Samuel-BF 8906e2796b Add size to filecount input (#4778) 2018-12-13 12:25:49 -08:00
Greg 74d8523db6 Aggregate early metrics, rather than ignore (#5085) 2018-12-10 16:07:08 -08:00
Daniel Nelson 0a506a93fe
Remove metrics from the buffer on write (#5052) 2018-11-29 12:58:48 -08:00
Daniel Nelson 574fa5a6be
Add support for fetching config over https (#4637) 2018-11-05 14:19:46 -08:00
Daniel Nelson 6e5c2f8bb6
Remove outputs blocking inputs when output is slow (#4938) 2018-11-05 13:34:28 -08:00
Trevor Pounds ee056278f5 Enable gofmt code simplification (#4887) 2018-10-19 13:32:54 -07:00
Samuel-BF 589d0587f6 Add ability to specify bytes options as strings with units (KB, MiB, ...) (#4852) 2018-10-19 11:17:18 -07:00
Samuel-BF f259229a35 Improve performance of globpath with some patterns (#4836) 2018-10-12 14:48:11 -07:00
Kevin Conaway 7bb219222a Add internal function for telegraf version (#4828) 2018-10-09 13:45:07 -07:00
Mihai Todor f3da717a88 Add entity-body compression to http output (#4807) 2018-10-05 15:06:41 -07:00