-
Notifications
You must be signed in to change notification settings - Fork 14
Add process minimum age to filter out short lived processes if needed #194
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
base: main
Are you sure you want to change the base?
Add process minimum age to filter out short lived processes if needed #194
Conversation
Thanks for your contribution @corneliu-calciu ! I have one question: what happens if a long-lived process starts while Beyla is running? Beyla will get the notice of that new process but it will detect it as too young, so will it discard it? |
Hi Mario This is exactly the scenario I want to address. The Beyla PODs are already running. A new process will be created on a node. Best Regards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good already, I left a few comments that I think we should address. Thanks for working on this!!!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #194 +/- ##
==========================================
- Coverage 70.45% 63.37% -7.08%
==========================================
Files 178 177 -1
Lines 19172 19172
==========================================
- Hits 13507 12151 -1356
- Misses 4909 6338 +1429
+ Partials 756 683 -73
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I looked at the test failures, I think we need to extend our default timeout interval since it takes a bit longer now for the services to be instrumented. These functions:
in test_utils.go (integration tests). Right now we wait a minute, I think we should make that a constant and change it to 2 minutes. |
Hm, it looks like the problem is somewhere else, I'm going to take a look myself, but I can't before Tuesday next week. |
Added minimum process age to be considered for discovery.
The new process detection logic will ignore a new process until its age reach a minimum value. As an example we may set a 3 seconds threshold as part of the monitoring configuration.
Any process will be considered as suitable for monitoring once is passing that configurable limit.
The noise of short lived processes can be filtered out.
Configuration example:
discovery:
exclude_services:
services:
min_process_age: 5s
Moved the RP from grafana/beyla#2066