[9.3](backport #49237) ES index mode & codec in metricbeat#49318
Merged
consulthys merged 1 commit into9.3from Mar 10, 2026
Merged
[9.3](backport #49237) ES index mode & codec in metricbeat#49318consulthys merged 1 commit into9.3from
consulthys merged 1 commit into9.3from
Conversation
* Add `mode` and `codec` fields to the `elasticsearch.index` metricset in Metricbeat. Update index settings retrieval and mapping to include these new fields. * Add new exported fields for Elasticsearch in Metricbeat documentation * Make update * Added fragment (cherry picked from commit 7dc72ea) # Conflicts: # CHANGELOG.asciidoc
Contributor
Author
|
Cherry-pick of 7dc72ea has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Contributor
🤖 GitHub commentsJust comment with:
|
9 tasks
Contributor
✅ Vale Linting ResultsNo issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Contributor
🔍 Preview links for changed docs |
Contributor
Author
|
This pull request has not been merged yet. Could you please review and merge it @3kt? 🙏 |
3 tasks
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.
Type of change: Enhancement
Proposed commit message
Add
modeandcodecfields to the elasticsearch.index metricsetWHAT:
elasticsearch.index.mode(e.g. time_series) andelasticsearch.index.codec(e.g. default, best_compression, none), sourced from the index/_settingsAPI.*.settings.index.modeand*.settings.index.codec, and populate the new fields in addIndexSettings only when present.modeandcodecto the Index struct (omitempty), to the index metricset fields.yml (keyword), to the sample data.json, and to CHANGELOG.asciidoc.WHY:
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.Disruptive User Impact
None. The change only adds optional fields. Existing dashboards and queries are unchanged; new fields appear in events when the Elasticsearch index exposes
index.modeorindex.codecin/_settings.Author's Checklist
mage FieldsDocs(ormake update) if required by project workflowHow to test this PR locally
index.modeorindex.codecset if possible).elasticsearch.index.modeand/orelasticsearch.index.codecappear when the index settings are present.Related issues
Use cases
Screenshots
N/A
Logs
N/A
This is an automatic backport of pull request #49237 done by Mergify.