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
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
3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions ( #9642 )
2021-08-23 15:37:44 -05:00
Sebastian Spaink
126825d944
Fix procstat plugin README to match sample config ( #9553 )
2021-07-28 16:22:37 -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
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
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
Helen Weller
d41569caed
Integration test audit ( #8725 )
2021-01-26 11:06:12 -07: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
Ben Carlton
143cabc4b7
Removed outdated information about Windows support ( #7971 )
...
Newer versions of Telegraf for Windows do not appear to support using WMI query patterns as values for the "pattern" option. Regular expressions appear to be the only patterns now supported.
2020-11-27 16:15:11 -05:00
Paweł Żak
c8e69aca3c
Fixed almost all bugs found by LGTM analysis platform ( #8240 )
2020-10-08 11:20:35 -04:00
Steven Soroka
0e6566a20f
procstat performance enhancement ( #7686 )
...
up to 40/120x better performance on FullPattern/Pattern functions
2020-06-16 13:46:32 -04:00
Daniel Nelson
894841a723
Update to github.com/shirou/gopsutil v2.20.5 ( #7641 )
2020-06-08 13:25:59 -07:00
Daniel Nelson
68b936c9f0
Update procstat pid_tag documentation
2020-05-14 00:48:05 -07:00
Josh Soref
2c56d6de81
Fix spelling errors in comments and documentation ( #7492 )
2020-05-14 00:41:58 -07:00
prashanthjbabu
59a506ae4a
Add process created_at time to procstat input ( #7039 )
2020-02-19 11:57:07 -08:00
Daniel Nelson
2754a484f9
Document memory_usage field in procstat input
2019-10-24 11:13:52 -07: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
Ferdi
cb4387df3f
Verify a process passed by pid_file exists ( #5768 )
2019-04-29 15:32:10 -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
Daniel Nelson
cf2b85f383
Add running field to procstat_lookup ( #5069 )
2018-12-11 19:11:33 -08:00
Greg
74667cd681
Fix toml struct tag in win_service #4811 ( #4936 )
2018-11-05 13:33:02 -08:00
Trevor Pounds
17360f079c
Fix spelling mistakes ( #4888 )
2018-10-19 11:12:01 -07:00
pytimer
f81696b6b5
Add windows service name lookup to procstat input ( #4811 )
2018-10-05 11:14:44 -07:00
Daniel Nelson
77f669344b
Exclude Windows WMI tests from -short tests
2018-09-17 18:00:12 -07:00
Greg
019d265167
Add dev/telegraf.conf for docker, exec, and procstat input ( #4460 )
2018-07-27 18:39:37 -07:00
Greg
b5cdeeb300
Add user tag to procstat input ( #4386 )
2018-07-05 13:56:41 -07:00
maxunt
2da223390a
Add procstat_lookup metric to readme ( #4337 )
2018-07-02 19:05:17 -07:00
maxunt
39206677f8
Add new measurement with results of pgrep lookup to procstat input ( #4307 )
2018-06-19 11:47:13 -07:00
Daniel Nelson
23933e1139
Improve procstat readme
2018-02-01 16:12:08 -08: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
Daniel Nelson
181a56018f
Update changelog
2017-11-13 11:02:01 -08:00
Patrick Hemmer
6ee6d55751
Add systemd unit pid and cgroup matching to procstat ( #3459 )
2017-11-13 10:59:27 -08:00
Patrick Hemmer
0339dc7faf
Add process resource limits to procstat input ( #3231 )
2017-09-15 11:16:44 -07:00
Sylvain Boily
9148871608
Documentation privilege requirements for specific procstat metrics ( #2787 )
2017-05-25 13:06:27 -07:00
Alexander Blagoev
3c28b93514
Improve procstat input documentation ( #2699 )
...
closes #1895
2017-04-24 11:18:55 -07:00
Patrick Hemmer
06baf7cf78
use AddError everywhere ( #2372 )
2017-04-24 11:13:26 -07:00
Daniel Nelson
70a0a84882
Really fix procstat initialization
2017-03-21 11:40:51 -07:00
Daniel Nelson
5c33c760c7
Fix procstat initialization
2017-03-21 10:59:41 -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
Rikaard Hosein
fc9f921b62
Can turn pid into tag instead of field
...
closes #1843
fixes #1668
2016-12-13 13:21:39 +00:00
Priyank Trivedi
393d129982
Fix typo from 'Proctstas' to 'Procstat' in procstat plugin's README ( #1945 )
2016-10-25 13:57:55 +01:00
Cameron Sparr
c7834209d2
Major Logging Overhaul
...
in this commit:
- centralize logging output handler.
- set global Info/Debug/Error log levels based on config file or flags.
- remove per-plugin debug arg handling.
- add a I!, D!, or E! to every log message.
- add configuration option to specify where to send logs.
closes #1786
2016-10-03 17:13:03 +01:00
Cameron Sparr
b55e9e78e3
gopsutil, fix /proc/pid/io naming issue
...
closes #1584
2016-08-05 09:53:14 +01:00
Cameron Sparr
d5e7439343
procstat plugin: store PID as a field
...
closes #1460
2016-07-14 15:52:02 -06:00
Cameron Sparr
56aee1ceee
Update gopsutil dependency
...
closes #1233
2016-05-20 15:30:13 +01:00
Jared Biel
ab54064689
Procstat input plugin - functionality for overriding of process_name ( #1192 )
...
Being able to override the process_name in the procstat module
is useful for daemonized perl, ruby, erlang etc. processes. This
allows for manually setting process_name rather than it being set to
the interpreter/VM of the process.
2016-05-19 11:34:25 +01:00
Cameron Sparr
671b40df2a
procstat: field prefix fixup
2016-04-25 20:10:34 -06:00
Cameron Sparr
249a860c6f
procstat: fix newlines in tags
2016-04-25 19:57:38 -06:00
Cameron Sparr
f1b7ecb2a2
procstat: Add user, pidfile, pattern & exe tags
...
closes #1035
2016-04-20 13:18:07 -06:00
Cameron Sparr
8509101b83
drop cpu_time_* from procstat by default
...
closes #963
2016-04-04 16:10:09 -06:00
Thibault Cohen
cd66e203bd
Improve procstat
...
closes #799
2016-03-07 17:57:32 +01:00
Aurélien DEHAY
9687f71a17
README updated for pgrep user support
...
closes #724
2016-02-22 14:33:37 -07:00
Aurélien DEHAY
ed684be18d
Adding pgrep user support
2016-02-22 14:32:04 -07: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
Cameron Sparr
5349a3b6d1
Implement a per-output fixed size metric buffer
...
Also moved some objects out of config.go and put them in their own
package, internal/models
fixes #568
closes #285
2016-01-22 16:29:02 -07: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
40a5bad968
Update procstat doc
2016-01-15 15:55:52 -07:00
Cameron Sparr
9c5db1057d
renaming plugins -> inputs
2016-01-07 15:04:30 -07:00