Commit Graph

104 Commits

Author SHA1 Message Date
Paweł Żak ae7fbc5082
chore(linters): Replace 'fmt.Errorf' with 'errors.New' wherever possible (#14698) 2024-02-08 11:32:30 -06:00
Paweł Żak 7da8956434
chore(linters): Fix findings found by testifylint for Windows and enable it. (#14238) 2023-11-02 06:40:30 -06:00
Paweł Żak 8fbea28ab3
chore(linters): Fix findings found by testifylint: expected-actual (#14229) 2023-11-01 14:09:55 -06:00
Paweł Żak 34ae468a8c
chore(linters): Fix findings found by testifylint: len (#14203) 2023-10-31 10:29:53 +01:00
Paweł Żak 7c5b3ea068
chore(linters): Fix findings found by testifylint: compares (#14177) 2023-10-24 15:02:26 -06:00
Paweł Żak 990ffc7222
chore(linters): Fix findings found by testifylint: bool-compare (#14163) 2023-10-24 10:45:17 -06:00
Paweł Żak a2f65d5728
chore: Fix linter findings for Windows (part4) (#13246)
Co-authored-by: Pawel Zak <Pawel Zak>
Co-authored-by: pzak <pzak>
2023-06-09 10:24:43 +02:00
Paweł Żak 77ee21f8e5
chore: Fix linter findings for Windows (part1) (#13057) 2023-04-25 07:15:55 -06:00
r3inbowari 19c4316694
chore: Update README.md (#12989) 2023-04-04 13:43:49 +02:00
Paweł Żak 5c234d8749
chore: Bump golangci-lint from v1.51.0 to v1.51.2 (#12782)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-03 10:06:54 +01:00
Paweł Żak b2b58bab9e
chore: Fix linter findings for errorlint (part6) (#12733)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-01 22:19:38 +01:00
Thomas Casteleyn 61523bd4b9
feat(tools/readme_linter): Check for global configuration section (#12426) 2023-01-12 16:55:21 +01:00
Joshua Powers 969188e9db
fix(inputs.ping): Avoid -x/-X on FreeBSD 13 and newer with ping6 (#12171) 2022-11-08 07:24:50 -07:00
Joshua Powers 49ac03fa80
docs: add global configuration header (#12107) 2022-10-26 14:58:36 -05:00
Thomas Casteleyn a2baab3d36
chore(deps): Replace go-ping by pro-bing (#11836) 2022-09-26 13:04:30 -06:00
Sebastian Spaink 4913392b85
chore: Remove deprecated build tags (#11867) 2022-09-22 13:25:31 -05: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
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
reimda f7aab29381
chore: Fix readme linter errors for input plugins M-Z (#11274) 2022-06-08 15:22:56 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Sven Rebhan 56eb914998
chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
Sebastian Spaink 0f5dc9946c
chore(inputs_m-z): migrate sample configs into separate files (#11133) 2022-05-18 11:31:34 -05:00
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
Mya d4582dca70
chore: clean up all markdown lint error on input plugins n through r (#10168) 2021-11-24 11:50:01 -07:00
Paweł Żak b9e4978b17
fix: Linter fixes for plugins/inputs/p* (#10066) 2021-11-15 09:14:09 -06:00
Mariusz Białończyk 0317d7c3db
fix (inputs.ping): change edit to restart in README.md (#9728) 2021-09-07 12:41:07 -05:00
Sebastian Spaink 3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
Rajiv Kushwaha 8c73370e50
inputs.ping: Add an option to specify packet size (#9274) 2021-05-20 14:21:20 -05:00
Sven Rebhan 8e7da355b3
Linter fixes (unhandled errors) -- Part 1 (#8992) 2021-04-08 11:43:39 -05:00
Sebastian Spaink 7d665904fc
inputs.ping: Always SetPrivileged(true) in native mode (#9072)
* Always SetPrivileged(true)

* Improve error message
2021-03-30 13:08:54 -05: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
Steven Soroka 7726f94621 fix ping tests 2021-03-10 16:55:59 -05:00
Steven Soroka 7651651867 add more logging to ping plugin 2021-03-10 12:11:19 -05:00
Sebastian Spaink aa6dc79fc6
Sort and timeout is deadline (#8839) 2021-02-09 10:50:57 -06: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
Sebastian Spaink 90392e16d1
Update README for inputs.ping with correct cmd for native ping on Linux (#8787)
* Update readme  to enable native ping

* Provide more information on the numbers being set

* reference for ping_group_range already exists
2021-02-08 09:36:23 -06:00
Sebastian Spaink 244178e5ca
Set interface for native (#8770)
Support both name and IP
2021-01-28 11:30:00 -06:00
Sebastian Spaink 03fe914c59
Resolve regression, re-add missing function (#8764) 2021-01-28 10:54:29 -05:00
Sebastian Spaink c237989631
Use go-ping for "native" execution in Ping plugin (#8679)
* Use go-ping for "native" execution in Ping plugin

* Check for ipv6 and deadline out of go func

* ensure dns failure

* Move interval and timeout calc to init
Removed dns failure check, 3rd parties libary responsibility

* Rename timeout to avoid conflict

* Move native ping to interface
Update tests

* Check for zero length
2021-01-26 16:02:43 -06:00
Helen Weller d41569caed
Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
Steven Soroka a27ded6d95
fix potential issue with race condition (#8577) 2020-12-16 15:39:12 -05:00
Frank Riley 97de3981bd
Add percentiles to the ping plugin (#7345) 2020-12-09 10:54:51 -07:00
DasSkelett 7354a44240
Fix Ping Input plugin for FreeBSD's ping6 (#7861) 2020-08-20 18:05:50 -04:00
Jakub Warczarek c116f0d039 Fix data race in input plugin ping_windows 2020-07-06 21:29:51 +02:00
Nathan Ferch 423fc283ac
Fix ping exit code handling on non-Linux (#7658) 2020-06-22 16:16:24 -07:00
Max Greenwald f74824eecb
Fix documentation of percent_packet_loss field (#7510) 2020-05-14 13:39:00 -07:00
dbutler-starry 124735af2e
Apply ping deadline to dns lookup (#7140) 2020-03-24 17:02:23 -07:00
Daniel Nelson 63b047c91a
Fix ping skips remaining hosts after dns lookup error (#6743) 2019-12-03 11:27:33 -08:00
Daniel Nelson 9f05163c53
Fix interface option with method = native in ping input (#6667) 2019-11-18 10:27:31 -08:00