Commit Graph

44 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 358224fa02
chore: Fix linter findings for `revive:enforce-repeated-arg-type-style` in `plugins/inputs/[o-z]*` (#15857) 2024-09-12 15:59:30 -05:00
Dane Strandboge 19737fcb52
chore(linters): Fix remaining errcheck warnings (#15518)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2024-07-10 12:51:25 +02: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
Joshua Powers 1410ea649b
fix(inputs.phpfpm): Add pid field to differentiate metrics (#14462) 2024-01-05 10:58:59 +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
Joshua Powers 6f6e49d615
fix(inputs.phpfpm): Check address length to avoid crash (#13495) 2023-06-26 19:06:29 +02: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 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07: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
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
Eng Zer Jun 81090be35d
refactor: replace strings.Replace with strings.ReplaceAll (#11079) 2022-05-11 09:53:34 -06:00
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
Paweł Żak b9e4978b17
fix: Linter fixes for plugins/inputs/p* (#10066) 2021-11-15 09:14:09 -06:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -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 8a6907a186
Revive fixes - part 3 (#8872)
* * Revive fixes regarding following set of rules: [rule.var-naming]
2021-03-01 16:04:35 -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
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
Paweł Żak 832925d9c8
[php-fpm] Fix possible "index out of range" (#8461) 2020-11-23 17:21:36 -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
Daniel Nelson c73ed8ca6c
Export internal/tls package for use in execd plugins (#7697) 2020-06-25 11:44:22 -07:00
Daniel Nelson 48f5da7e33
Fix status path when using globs in phpfpm (#7324) 2020-04-14 12:14:49 -07: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
Greg 72695228b3 Enhance HTTP connection options for phpfpm input plugin (#5713) 2019-04-16 17:56:56 -07:00
Daniel Nelson be9d4f4be0
Add tag for target url to phpfpm input (#3928) 2018-03-23 11:50:52 -07:00
Patrick Hemmer 06baf7cf78 use AddError everywhere (#2372) 2017-04-24 11:13:26 -07:00
Cameron Sparr 974221f0cf Fix phpfpm fcgi client panic when URL doesnt exist
closes #1886
2016-10-12 11:58:38 +01:00
Cameron Sparr 411d8d7439 Fix leaky tcp connections in phpfpm plugin
closes #1089
2016-04-26 09:24:32 -06:00
Rudenkovk Konstantin e03f684508 Fix parse fcgi URI path in php-fpm input module
closes #934
2016-03-30 10:34:48 -06:00
Cameron Sparr 805db7ca50 Break out fcgi code into orig Go files, don't ignore errs
closes #816
2016-03-09 13:44:11 +01:00
Cameron Sparr 8d2e5f0bda Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
Cameron Sparr fc7fa4b6c5 Cleanup comments and indentation in config file 2016-02-09 11:01:50 -07:00
Cameron Sparr 9c0d14bb60 Create public models for telegraf metrics, accumlator, plugins
This will basically make the root directory a place for storing the
major telegraf interfaces, which will make telegraf's godoc looks quite
a bit nicer. And make it easier for contributors to lookup the few data
types that they actually care about.

closes #564
2016-01-27 15:42:50 -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