Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux generic per process stats collector #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nigel4321
Copy link

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

  • IO

rchar
wchar
syscr
syscw
read_bytes
write_bytes
cancelled_write_bytes

  • fd

Number of open file descriptors

  • threads

Number of active threads

  • net

Number of established connections for tcp, tcp6, udp, udp6 and unix

  • pcpu

Percent CPU usage.
Calculated over 1 second by default, but you can change this.

  • mem

total - total program size - (Virtual memory size)
resident - resident set size

Configuration changes are picked up on the fly.

Any suggestions appreciated.

@johann8384 johann8384 modified the milestone: 1.3.1 Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants