-
Notifications
You must be signed in to change notification settings - Fork 1.2k
processes plugin: Code cleanup + add per-process open files count #1989
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
Conversation
That is too hard to make changes in this plugin. There is too much unused fields in structures and many unnecessary actions before this cleanup. What do you think, @octo? |
2d53270
to
9bbcd5f
Compare
The second commit fixes gaps, caused by terminated processes. After upgrade (at 07:33): That commit also fix monitoring processes which does not write nothing:
In that case
Later, in |
Added commit here for 'Add per-process open files count #836'. |
After I had put this on my production, I found a drop on one of charts (Updated at 07:33): Avg value before update was around ~65 and around ~40 after upgrade. |
Changed Work finished, please review/merge it. |
ping |
This feature would be really useful to us. |
Hi! I'm just use this (like other my PR) in my production environment, so I don't experience any problems with code quality. Thanks for your attention and intereset to this patch request. |
Fix counting when matched processes are started and terminated often.
This is Linux-only right? If so, please add that fact to the docs and commit message. |
Hi Ruben! That change would be enough? |
Enough for what? |
For this:
|
Ah, I didn't see your change. Github lag I guess. Yes, it is fine. |
Awesome, thanks @rpv-tomsk and @rubenk |
The
procstat_entry_s
used in improper way.Added new type and simplified the code - removed unneeded assignments and values copying.