-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Add more robust error handling to OsCgroupMetricsCollector #78213
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
|
Pinging @elastic/kibana-platform (Team:Platform) |
| this.noCgroupPresent = true; | ||
| return {}; | ||
| } else { | ||
| throw err; |
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.
Does it comply with the existing LP logic?
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.
Well, there is no more legacy logic :) But yes, this matches the catch-all exception handler that was at the calling level here: https://github.com/elastic/kibana/blob/7.8/src/legacy/server/status/lib/metrics.js#L131
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
…8213) Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
) (#78435) Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Fixes #78191
Ensures that any errors that occur during cgroup metric collection cannot crash Kibana.
Checklist
Delete any items that are not applicable to this PR.
For maintainers