ES index mode & codec in metricbeat#49237
Conversation
…in Metricbeat. Update index settings retrieval and mapping to include these new fields.
🤖 GitHub commentsJust comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
✅ 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. |
🔍 Preview links for changed docs |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughThis pull request adds two new fields— ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
|
@Mergifyio backport 8.19 9.2 9.3 |
✅ Backports have been createdDetails
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
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
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 |
* 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: # docs/reference/metricbeat/exported-fields-elasticsearch.md # docs/reference/metricbeat/metricbeat-metricset-elasticsearch-index.md
* 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
* 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
* 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 Co-authored-by: Alexis Charveriat <alcharveriat@gmail.com>
* ES index mode & codec in metricbeat (#49237) * 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 * Fix 9.3 backport: remove stray CHANGELOG.asciidoc from cherry-pick The cherry-pick from main brought over CHANGELOG.asciidoc which does not exist on the 9.3 branch. Remove it to fix the backport. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* ES index mode & codec in metricbeat (#49237) * 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: # docs/reference/metricbeat/exported-fields-elasticsearch.md # docs/reference/metricbeat/metricbeat-metricset-elasticsearch-index.md * Fix 8.19 backport: remove markdown docs and regenerate asciidoc fields The cherry-pick from main brought over markdown doc files that don't exist on 8.19, which still uses asciidoc. Remove the erroneous markdown files and regenerate metricbeat/docs/fields.asciidoc to include the new elasticsearch.index.mode and elasticsearch.index.codec field entries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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