-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[process] add a PID cache, avoid iter on all procs
The new init_config `pid_cache_duration` is the period during which the agent won't try to refresh the "matching" PID list for each instance. It avoids having to iterate over all the processes every run, the cache is invalidated when: * the deadline expire * or one of the cached process can't be read anymore One would want to lower the cache deadline if he wants to alert on no-data.
- Loading branch information
1 parent
774e97b
commit cc5a67b
Showing
3 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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