-
Notifications
You must be signed in to change notification settings - Fork 616
feat(host-metrics): add 'metricGroups' configuration option to limit which metrics are collected #3149
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
feat(host-metrics): add 'metricGroups' configuration option to limit which metrics are collected #3149
Conversation
… which metrics are collected Collection of some host-metrics metrics can be costly. Using a Metrics View can be used to drop metrics, but there will still be the cost of having collected them in the first place. This adds a config option to select which groups of metrics should be collected.
legendecas
left a comment
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.
Thanks, looks good to me!
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
|
@legendecas Are you able to review this again, now that I've added some tests? Thanks. |
|
Non-blocking: I wonder if the intention of the spec was to actually NOT to invoke async observable callbacks in the first place if a Considering that the main use-case for Observable instruments is to allow expensive operations to only run when the |
|
anyway - non-blocking: making such a change is likely a huge undertaking. I just checked our implementation and it would be really difficult to make that change happen the way things are implemented today. |
|
@pichlermarc there might be multiple views configured on a single metric instrument like an observable. I think it could be considered as an optimization rather than a requirement that if there is only one metric view of drop aggregation configured for an observable, the callback of the observerble could be skipped.
|
Yep, agree.
Mhm, looking at the whole paragraph:
It seems like it mostly concerns itself with observations not cross-polluting other Digging for precedent in Java, there's this:
Unfortunately there was no discussion on that specific behavior in the PR that added it. Since our implementation is similar, I now wonder if there's a chance that we could do something similar
|
|
I think a dedicated issue is worthwhile for this in the core repo. Would you like to open an issue in the core repo? |
|
Collection of some host-metrics metrics can be costly. Using a Metrics View can be used
to drop metrics, but there will still be the cost of having collected them in the
first place. This adds a config option to select which groups of metrics should
be collected.
Checklist