Skip to content

Conversation

@joshdover
Copy link
Contributor

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

@joshdover joshdover added Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Sep 22, 2020
@joshdover joshdover requested a review from a team as a code owner September 22, 2020 20:38
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

this.noCgroupPresent = true;
return {};
} else {
throw err;
Copy link
Contributor

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?

Copy link
Contributor Author

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

@joshdover
Copy link
Contributor Author

@elasticmachine merge upstream

@joshdover
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@joshdover joshdover merged commit d571358 into elastic:master Sep 24, 2020
@joshdover joshdover deleted the fix-78191 branch September 24, 2020 14:54
joshdover added a commit to joshdover/kibana that referenced this pull request Sep 24, 2020
…8213)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
joshdover added a commit that referenced this pull request Sep 24, 2020
) (#78435)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kibana refuses to start if metrics collector can't access sysfs

4 participants