Commit Graph

86 Commits

Author SHA1 Message Date
Paweł Żak d829a5b29c
chore: Fix linter findings for `revive:unused-receiver` in `plugins/inputs/[l-r]` (#16325) 2024-12-18 12:47:47 -06:00
Paweł Żak e2b5a9910b
chore: Fix linter findings for `revive:exported` in `plugins/inputs/p*` (#16307) 2024-12-17 11:10:18 -06:00
Phil Bracikowski 543b907cdf
fix(inputs.procstat): Handle running processes correctly across multiple filters (#16257) 2024-12-03 11:18:46 -06:00
Mingyang Zheng 67f655bfeb
chore(deps): Bump upgrade github.com/shirou/gopsutil from v3.24.4 to v4.24.9 (#16023) 2024-10-15 13:25:18 +02:00
Sven Rebhan fd8cbbf662
feat(inputs.procstat): Add ability to collect per-process socket statistics (#15423) 2024-07-17 12:44:41 -06: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
Joshua Powers 71718fba7d
chore: Update removal dates to either v1.35.0 or v1.40.0 (#15452) 2024-06-05 15:19:47 -05:00
Sven Rebhan a3b105e88e
feat(inputs.procstat): Add option to select properties to collect (#15299) 2024-05-08 11:22:25 -05:00
Sven Rebhan 920f92fc53
fix(inputs.procstat): Do not report dead processes as running for orphan PID files (#15260) 2024-05-02 13:46:36 -05:00
Sven Rebhan 2acae45d09
feat(inputs.procstat): Allow multiple selection criteria (#14948)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2024-04-19 12:12:37 +02:00
Paweł Żak 98ec91478a
chore(linters): replace 'fmt.Sprintf' with string addition (#14699) 2024-02-08 15:46:22 -05:00
Joshua Powers 681e386bd3
fix(inputs.procstat): Correctly set tags on procstat_lookup (#14493) 2024-01-02 12:32:21 +01:00
Paweł Żak 3786cf2d72
chore(linters): Enable equalFold, preferStringWriter, and stringXbytes checkers for gocritic. (#14452) 2023-12-15 06:25:10 -07:00
Sven Rebhan d2329621dc
fix(inputs.procstat): Revert unintended renaming of 'systemd_unit' option (#14440) 2023-12-12 06:40:34 -07:00
Sven Rebhan ebffaa3916
chore(inputs.procstat): Convert bool tagging settings to a list (#14333) 2023-11-30 16:23:35 -07:00
Sven Rebhan 827f1cc249
chore(inputs.procstat): Use plural for supervisor_units option (#14329) 2023-11-28 14:02:08 -07:00
Sven Rebhan f2cc928178
chore(inputs.procstat): Cleanup code (#14326) 2023-11-27 13:50:30 -07:00
chenbt 2c5fbbc2a7
feat(inputs.procstat): Obtain process information through supervisor (#13417) 2023-11-13 16:11:31 -07:00
Sven Rebhan 76b311813a
feat(inputs.procstat)!: Remove useless zero cpu_times (#14224) 2023-10-31 16:03:36 -06:00
Paweł Żak 171dccb7d7
chore(tools): Bump golangci-lint from v1.54.2 to v1.55.0 (#14155) 2023-10-23 08:12:08 -06:00
Joshua Powers 86a546c88d
fix(inputs.procstat): Collect swap via /proc/$pid/smaps (#13779) 2023-09-08 11:41:48 +02:00
Vanilla f2a1101581
feat(inputs.procstat): Add status field (#13505) 2023-06-27 17:12:16 +02:00
genofire 9bfe6425b3
fix(inputs.procstat): Return tags of pids if lookup_error (#13015) 2023-04-03 20:28:50 +02:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Paweł Żak 74703d092b
chore: Fix linter findings for prealloc (part2) (#12242) 2022-11-15 09:31:51 +01:00
Paweł Żak 6816aefcd5
chore: fix linter findings for unparam and revive.unused-parameter (#12150) 2022-11-08 12:04:12 -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
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
Pierre Fersing 4a0397342a
fix: update shirou/gopsutil to v3 (#10119) 2021-11-18 09:33:47 -07:00
Joshua Powers 85a7fbc13f
fix: procstat tags were not getting generated correctly (#9973)
Fixes: #9961
2021-10-25 13:21:39 -06:00
Sebastian Spaink 2e230e6bf4
fix: Correct conversion of int with specific bit size (#9933) 2021-10-18 09:48:16 -05:00
Joshua Powers ac40bdc52e
fix: procstat missing tags in procstat_lookup metric (#9808)
In #9488 the way that tags were built for procstat_lookup was changed
and it was only including the pid_finder and result tags. This is not
consistent with the documentation and is a regression from how they were
previously constructed.

Becuase of the large change to how procstat metrics are gathered, this
will use one of the process metric's tags as a basis for the tags for
procstat_lookup.

Resolves: #9793
2021-10-01 15:10:25 -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 5843b27d75
Update procstat to support cgroup globs & include systemd unit children (Copy of #7890) (#9488) 2021-07-27 16:51:56 -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
reimda 851136f16c
Add PPID field to procstat input plugin (#8887) 2021-03-02 21:42:06 -07: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
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
David Bennett 70d2b1f790
Procstat input plugin should use the same timestamp in all metrics in the same Gather() cycle. (#8658) 2021-01-12 17:59:13 -05:00
Greg 7c17055178
Provide method to include core count when reporting cpu_usage in procstat input (#6165)
* Provide a non-irix reporting of cpu_usage in procstat input

* Update sample config to include cpu gathering mode

* cleanup readme from merge
2020-12-23 09:30:47 -06:00
Paweł Żak c8e69aca3c
Fixed almost all bugs found by LGTM analysis platform (#8240) 2020-10-08 11:20:35 -04:00
Daniel Nelson 68b936c9f0
Update procstat pid_tag documentation 2020-05-14 00:48:05 -07:00
prashanthjbabu 59a506ae4a
Add process created_at time to procstat input (#7039) 2020-02-19 11:57:07 -08:00
Matthew Crenshaw e36639b15d Add memory_usage field to procstat input plugin (#6249) 2019-08-14 10:17:38 -07:00
José Moreno Hanshing cc2f3b29e1 Don't consider pid of 0 when using systemd lookup in procstat (#5972) 2019-06-14 12:00:14 -07:00
Marc Venturini 4b6e791908 Fix sensor read error stops reporting of all sensors in temp input (#5941) 2019-06-14 11:27:24 -07:00