[9.1] [Telemetry] Move indices metadata out of security solution (#212875)#231939
Merged
kibanamachine merged 1 commit intoelastic:9.1from Aug 15, 2025
Merged
Conversation
…12875) ## Summary This PR introduces a new plugin to relocate the [indices metadata telemetry feature](elastic#194004) out of the `security_solution` plugin, making it available across all cluster setups, not just security clusters. ### Key Changes - **Plugin Location:** `x-pack/platform/plugins/private`. - **Scheduled Task:** Core logic runs as a periodic Kibana task (currently runs frequently for testing; intended to run daily) to collect indices and ILM information. - **EBT:** Collected data is published as EBT documents. Defined events include: * `DATA_STREAM_EVENT` * `INDEX_STATS_EVENTS` * `ILM_STATS_EVENTS` * `ILM_POLICY_EVENTS` See `server/lib/ebt/events.ts` for details. - **Internal Configuration Schema:** Allows tuning query behavior: ```ts export const IndicesMetadataConfigurationSchema = schema.object({ indices_threshold: schema.number(), datastreams_threshold: schema.number(), index_query_size: schema.number(), ilm_stats_query_size: schema.number(), ilm_policy_query_size: schema.number(), }); ``` Default values are zero, meaning no queries run unless explicitly configured. - **Remote Configuration via CDN:** Implements the same manifest mechanism used by `security_solution`: * A signed config manifest (zip with `manifest.json` + `manifest.sig`) is downloaded via CDN. * An `rxjs` timer polls for updates. * Once verified, new config values are applied dynamically. - **Plugin-Level Settings:** Supports configuring the CDN URL and public key to verify signatures: ```ts const pluginConfigSchema = schema.object({ cdnUrl: schema.maybe(schema.string()), publicKey: schema.maybe(schema.string()), }); ``` As a reference, below are stats for the last 90 days for the current implementation inside `security-solution` | event_type | max_doc_size_bytes | avg_doc_size_bytes | |--------------------------------|--------------------|--------------------------| | telemetry_index_settings_event | 2,235,887 | 25,286.12 | | telemetry_ilm_policy_event | 577,148 | 3,390.25 | | telemetry_ilm_stats_event | 2,731,533 | 19,607.14 | | telemetry_index_templates_event| 5,788,583 | 36,688.70 | | telemetry_index_stats_event | 3,829,341 | 55,705.83 | | telemetry_data_stream_event | 6,885,418 | 17,581.92 | --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 92acdae)
Contributor
🔍 Preview links for changed docs |
Contributor
⏳ Build in-progress, with failures
Failed CI Stepscc @szaffarano |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.1:Questions ?
Please refer to the Backport tool documentation