Paweł Żak
ae7fbc5082
chore(linters): Replace 'fmt.Errorf' with 'errors.New' wherever possible ( #14698 )
2024-02-08 11:32:30 -06:00
Joshua Powers
681e386bd3
fix(inputs.procstat): Correctly set tags on procstat_lookup ( #14493 )
2024-01-02 12:32:21 +01: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
Paweł Żak
34ae468a8c
chore(linters): Fix findings found by testifylint: len ( #14203 )
2023-10-31 10:29:53 +01: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
Paweł Żak
89fa07fc5e
chore: Enable G301, G302 and G306 rules for gosec ( #13022 )
2023-04-04 08:51:08 -06:00
Paweł Żak
74703d092b
chore: Fix linter findings for prealloc (part2) ( #12242 )
2022-11-15 09:31:51 +01:00
Paweł Żak
9d9eb403a6
chore: Review of //nolint comments ( #12088 )
2022-10-26 12:06:08 +02:00
Eng Zer Jun
c3d176029d
test: use `T.TempDir` to create temporary test directory ( #10988 )
2022-04-18 13:27:59 -06:00
Pierre Fersing
4a0397342a
fix: update shirou/gopsutil to v3 ( #10119 )
2021-11-18 09:33:47 -07:00
Paweł Żak
b9e4978b17
fix: Linter fixes for plugins/inputs/p* ( #10066 )
2021-11-15 09:14:09 -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
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
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
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
Matthew Crenshaw
9c3af1e6ac
Add pagefault data to procstat input plugin ( #5769 )
2019-04-25 17:21:02 -07:00
scottprichard
d2666d0db6
Add cmdline tag to procstat input ( #5681 )
2019-04-10 18:42:38 -07:00
Greg
b5cdeeb300
Add user tag to procstat input ( #4386 )
2018-07-05 13:56:41 -07:00
maxunt
39206677f8
Add new measurement with results of pgrep lookup to procstat input ( #4307 )
2018-06-19 11:47:13 -07:00
Ben Aldrich
a7571d5730
Add native Go method for finding pids to procstat ( #3559 )
2018-02-01 15:14:27 -08:00
Patrick Hemmer
cbd346117a
Add tests for procstat systemd & cgroup matching ( #3469 )
2017-11-13 14:45:31 -08:00
Patrick Hemmer
0339dc7faf
Add process resource limits to procstat input ( #3231 )
2017-09-15 11:16:44 -07:00
Patrick Hemmer
06baf7cf78
use AddError everywhere ( #2372 )
2017-04-24 11:13:26 -07:00
Daniel Nelson
a962e958eb
Refactor procstat input ( #2540 )
...
fixes #1636
fixes #2315
2017-03-17 16:49:11 -07:00
Cameron Sparr
7a8e821731
Revert "Procstat: don't cache PIDs" ( #2479 )
2017-03-06 15:59:36 +00:00
Yaron de Leeuw
0ce44648cf
Procstat: don't cache PIDs ( #2206 )
...
* Procstat: don't cache PIDs
Changed the procstat input plugin to not cache PIDs. Solves #1636 .
The logic of creating a process by pid was moved from `procstat.go` to
`spec_processor.go`.
* Procstat: go fmt
* procstat: modify changelog for #2206
2017-02-02 14:12:22 +00:00
Cameron Sparr
f1b7ecb2a2
procstat: Add user, pidfile, pattern & exe tags
...
closes #1035
2016-04-20 13:18:07 -06:00
Jack Zampolin
0cdf1b07e9
Fix issue 524
2016-01-20 10:57:35 -08:00
Cameron Sparr
d3925fe578
Include CPU usage percent with procstat data
...
closes #484
2016-01-19 22:52:55 -07:00
Cameron Sparr
9c5db1057d
renaming plugins -> inputs
2016-01-07 15:04:30 -07:00