kibana icon indicating copy to clipboard operation
kibana copied to clipboard

[Search] [Onboarding] Add metering stats API information to indices GET

Open joemcelroy opened this issue 1 year ago • 2 comments
trafficstars

Summary

Adds index size and doc count to indices management indices API. This API is available only on ES3, relying on the _metering/stats API to provide this information. The use of the API is scoped only for serverless projects, via a config.

AppEx will roll out the UI changes for the other ES3 project solutions.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

joemcelroy avatar Aug 28 '24 13:08 joemcelroy

Why does Search need this info? Do you have an epic link somewhere?

It'll help having some background about what the changes are needed for.

I found the epic through links referencing this PR. For future reference, we tend to use "fix: xyz-issue" or "relasted-to: abc epic" in Core.

So we try not to explicitly link our private issues in PRs. I agree its better to link them in the PR text when these issues are visible for everyone.

joemcelroy avatar Aug 29 '24 07:08 joemcelroy

@elasticmachine merge upstream

joemcelroy avatar Sep 02 '24 08:09 joemcelroy

:yellow_heart: Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
indexManagement 43.5KB 43.6KB +57.0B

History

  • :green_heart: Build #230885 succeeded 2d694dc1bb158d8e3e8baf2c04f2928d8875864b
  • :broken_heart: Build #230721 failed 76beb3bc49bd0539f6bd2f62d6c7486a79fb6b97
  • :broken_heart: Build #230687 failed aa8e4ce492110091323858b4406b7ffaa3279b54
  • :broken_heart: Build #230605 failed e48d45f4f45cfc85bb69a10709f9ed517274ac13
  • :broken_heart: Build #230514 failed 27fad602f4cb045d605f2eebb031bbef385f5233

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

kibana-ci avatar Sep 02 '24 10:09 kibana-ci