[Metricbeat][Kibana][status] metrics is optional#20956
[Metricbeat][Kibana][status] metrics is optional#20956afharo wants to merge 1 commit intoelastic:masterfrom
metrics is optional#20956Conversation
6e85e5e to
cc3d6e1
Compare
|
Pinging @elastic/stack-monitoring (Stack monitoring) |
|
Pinging @elastic/integrations-services (Team:Services) |
|
@ycombinator I noticed the team @elastic/kibana-platform is planning to migrate this endpoint to Kibana's New Platform and |
|
@afharo In that case let's not merge this PR. |
|
I'll double confirm with them and will come back. |
@afharo Any news here? |
|
Yes, @joshdover is working on elastic/kibana#76054 (that triggered elastic/kibana#76730). Both PRs should eventually ensure |
|
The fix in Kibana has been merged! elastic/kibana#76054 Closing this PR. |
What does this PR do?
Kibana might not return the
metricsproperty to the/api/statusrequest. This PR makes that property optional in the schema.Why is it important?
In #20772, we've noticed some flaky tests. These changes will make Metricbeat more resilient.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
I'd say we can make it work if in the test environment, Kibana takes longer than 1 minute to start, we've seen than the first
green/api/statusresponse might not contain the metrics data (it can take Kibana up to 5s to populate it after the startup).Related issues
Use cases
Screenshots
Logs