Commit Graph

38 Commits

Author SHA1 Message Date
Paweł Żak e2b5a9910b
chore: Fix linter findings for `revive:exported` in `plugins/inputs/p*` (#16307) 2024-12-17 11:10:18 -06:00
Paweł Żak 6045e13616
chore(linters): Fix findings found by `testifylint`: `go-require` for handlers for `plugins/inputs/[n-z]` (#16098) 2024-10-30 12:11:55 +01:00
Paweł Żak 453d32bd81
chore: Fix linter findings for `revive:comment-spacings` (part 2) (#15897) 2024-09-19 11:03:28 +02:00
Sven Rebhan ef41198481
chore(logging): Implement early logging (#15629) 2024-07-26 09:09:21 -06:00
Viktor Szépe 31a1d34d99
chore: Fix typos throughout codebase (#15338) 2024-05-31 10:26:37 +02:00
Pierre Fersing 31b2b505c0
fix(inputs.phpfpm): Check error before continue processing (#15176) 2024-04-17 13:58:24 -06:00
Pierre Fersing 4c1aa59574
fix(inputs.phpfpm): Add timeout for fcgi (#15036) 2024-03-22 06:15:12 -06:00
Sven Rebhan c475771993
fix(inputs.phpfpm): Continue despite erroneous sockets (#14852) 2024-02-21 11:38:10 -06:00
Paweł Żak c4dbe65732
chore(linters): Bump golangci-lint to v1.56.1 (#14759) 2024-02-12 23:26:10 +01:00
Helge Eichelberg 1eb86dc93b
fix(inputs.phpfpm): Use logger without causing panic (#14489)
Signed-off-by: elchenberg <elchenberg@users.noreply.github.com>
2024-01-02 18:33:39 +01:00
Joshua Powers 34296b8154
fix(inputs.php-fpm): Parse JSON output (#14430) 2023-12-13 07:51:32 -07:00
Paweł Żak 89a235c620
chore(linters): Enable perfsprint linter and fix all findings. (#14208) 2023-10-30 06:14:16 -06:00
Paweł Żak 00347033ab
chore: Fix linter findings for nolintlint (part2) (#12430)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-01-26 11:27:32 +01:00
Paweł Żak 9d9eb403a6
chore: Review of //nolint comments (#12088) 2022-10-26 12:06:08 +02: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
Sebastian Spaink 4913392b85
chore: Remove deprecated build tags (#11867) 2022-09-22 13:25:31 -05:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Joshua Powers 80580c070f
fix: ensure CI tests runs against i386 (#10457) 2022-01-18 13:45:03 -07:00
Paweł Żak b9e4978b17
fix: Linter fixes for plugins/inputs/p* (#10066) 2021-11-15 09:14:09 -06:00
Sebastian Spaink 3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
Helen Weller 9fcd5a5b54
fix test so it hits a fake service (#9564) 2021-07-30 15:14:23 -04:00
Sven Rebhan 8e7da355b3
Linter fixes (unhandled errors) -- Part 1 (#8992) 2021-04-08 11:43:39 -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
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
Paweł Żak 0fcfee0caf
Fix tests for Windows - part 1 (#8414) 2020-11-23 10:40:32 -05:00
Steven Soroka 01230889b4
fix issue with phpfpm url usage (#8292) 2020-10-20 11:45:30 -04:00
Paweł Żak c8e69aca3c
Fixed almost all bugs found by LGTM analysis platform (#8240) 2020-10-08 11:20:35 -04:00
Daniel Nelson 81ec33c560
Fix data race in phpfpm initializing http client (#7738) 2020-06-30 14:19:54 -07:00
Steven Soroka c78e4b449c
fix broken test on mac (#7181) 2020-03-16 19:07:39 -04:00
Andre Nathan 88216eb4d2
Allow globs in FPM unix socket paths (#7089) 2020-02-28 14:47:04 -08:00
dupondje 31291f5590 Add starttime to php-fpm metrics (#5997) 2019-06-17 12:55:09 -07:00
Daniel Nelson be9d4f4be0
Add tag for target url to phpfpm input (#3928) 2018-03-23 11:50:52 -07:00
Maximilien Richer 5f215c22fe Fix typos in comments (#3415) 2017-10-31 17:00:06 -07:00
Patrick Hemmer 06baf7cf78 use AddError everywhere (#2372) 2017-04-24 11:13:26 -07:00
Jack Zampolin 0cdf1b07e9 Fix issue 524 2016-01-20 10:57:35 -08:00
Vinh 5af6974796 phpfpm plugin: enhance socket gathering and config
- If we detect errors when gathering stat via socket, return those error
  so it canbe appear in Telegraf log
- Improve fcgi client, also upgrade it to current version of Go at
  https://golang.org/src/net/http/fcgi/fcgi.go
- Add test for unix socket and fcgi
  to remotely connect but only as an extra url field.
- Allow customization of fpm status path
- Document about using of `host` in case `unixsocket` that it isn't used
- Documet upgrade for new data layout

closes #499
closes #502
closes #538
2016-01-18 10:56:45 -07:00
Cameron Sparr 9c5db1057d renaming plugins -> inputs 2016-01-07 15:04:30 -07:00