Linux generic per process stats collector#137
Open
nigel4321 wants to merge 2 commits intoOpenTSDB:masterfrom
Open
Linux generic per process stats collector#137nigel4321 wants to merge 2 commits intoOpenTSDB:masterfrom
nigel4321 wants to merge 2 commits intoOpenTSDB:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An attempt to create a collector which collects stats for any process.
To do so it uses a configuration file which specifies the tag and a regex. The regex is matched against the command line of the process.
The intention was to aide support teams in troubleshooting problems with specific applications. It means you can give a non-root user change access to the config file.
All of the stats are gathered out of /proc and this collector will not interact directly with your process.
As such, for what the metrics means, look at man proc(5)
It provides
rchar
wchar
syscr
syscw
read_bytes
write_bytes
cancelled_write_bytes
Number of open file descriptors
Number of active threads
Number of established connections for tcp, tcp6, udp, udp6 and unix
Percent CPU usage.
Calculated over 1 second by default, but you can change this.
total - total program size - (Virtual memory size)
resident - resident set size
Configuration changes are picked up on the fly.
Any suggestions appreciated.