Adding 'mode' and 'codec' fields to ES monitoring template#143673
Adding 'mode' and 'codec' fields to ES monitoring template#1436733kt merged 8 commits intoelastic:mainfrom
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
💔 Backport failedThe backport operation could not be completed due to the following error: You can use sqren/backport to manually backport by running |
…locations * upstream/main: (153 commits) ES|QL: Update docs for TOP_SNIPPETS and DECAY (elastic#143739) Correctly include endpoint id in log msg in AuthorizationPoller (elastic#143743) Bar searching or sorting on _seq_no when disabled (elastic#143600) Generalize `testClientCancellation` test (elastic#143586) JSON_EXTRACT: zero-copy byte slicing for object, array, and number extraction (elastic#143702) Track recycler pages in circuit breaker (elastic#143738) [ESQL] Enable distributed pipeline breakers for external sources via FragmentExec (elastic#143696) Adding 'mode' and 'codec' fields to ES monitoring template (elastic#143673) [ESQL] Columnar I/O and vectorized block conversion for external sources (elastic#143703) Fix flaky MMR diversification YAML tests (elastic#143706) ES|QL codegen: check builder arguments for vector support (elastic#143724) Add Views Security Model (elastic#141050) ESQL: Prevent pushdown of unmapped fields in filters and sorts (elastic#143460) Don't run seq_no pruning tests in release CI (elastic#143725) ESQL: Support intra-row field references in ROW command (elastic#140217) ES|QL: Remove implicit limit in FORK branches in CSV tests (elastic#143601) IndexRoutingTests with and without synthetic id (elastic#143566) Synthetic id upgrade test in serverless (elastic#142471) Disable "Review skipped" comments for PRs without specified labels (elastic#143728) Cleanup ES|QL T-Digest code duplication, add memory accounting (elastic#143662) ...
…43673) * Enhance monitoring template by adding 'mode' and 'codec' fields to monitoring mapping * Added changelog entry * Fixed tests * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Summary
Add
modeandcodecto the Stack Monitoring (Metricbeat) index template so they can be indexed and queried when present in Metricbeat index metricset events.What
monitoring-es-mb.json, add two optional keyword fields to the index metricset mapping:elasticsearch.index.mode(e.g.time_series) andelasticsearch.index.codec(e.g.default,best_compression,none).STACK_MONITORING_REGISTRY_VERSIONinMonitoringTemplateRegistryso the updated template is applied.Why
Metricbeat will send these fields from the Elasticsearch index metricset (see elastic/beats#49237). The monitoring template must define the mappings so the data is indexed correctly and can be used in Kibana/dashboards.
This follows the same approach as elastic/elasticsearch#117851, which added
tier_preferenceandcreation_dateto the monitoring template after they were added in Beats.Checklist