Summary
Align the kibana package mappings with the metricbeat ones (.monitoring-kibana-mb).
Steps to get the deltas:
Interpreting delta
Because the collection modes differs some differences in the mappings are expected:
- +data_stream.* - only appears in agent-collected data
- +event.(agent_id_status|ingested) - only appears in agent-collected data, defined by
.fleet_agent_id_verification-1 component template
- -metricset.* - only appears in metricbeat-collected data
Besides these properties any other delta should be patched:
- for ecs properties like
event.* or service.* every metric data streams' ecs.yml of the package should be updated. be careful not to patch the logs data streams as these will be handled separately
- for metricset-specific deltas like
indices_stats or kibana_stats, only the corresponding data stream package-fields.yml should be updated. It can be found by searching for the term in the corresponding metricbeat module as the field will be documented in either the reference document or the fields in the _meta folder
If the corresponding data stream does not exist, it is most likely related to elastic/kibana#137691
See documentation to update packages locally
AC
- when running the diff for kibana mappings, only the expected delta are showing up
- Stack Monitoring's Kibana views are all powered by agent-collected metrics
Summary
Align the kibana package mappings with the metricbeat ones (
.monitoring-kibana-mb).Steps to get the deltas:
^8.5.0elastic-package stack up -v --version 8.5.0-SNAPSHOTnpm installnpm run print-diff --package kibana --use-local. The --use-local is a temporary workaround until [Stack Monitoring] Cleanup unused mappings properties elasticsearch#88899 is merged and available in snapshot. The diff tool includes a local version of the patched metricbeat mappings so that we don't print outdated deltasInterpreting delta
Because the collection modes differs some differences in the mappings are expected:
.fleet_agent_id_verification-1component templateBesides these properties any other delta should be patched:
event.*orservice.*every metric data streams' ecs.yml of the package should be updated. be careful not to patch the logs data streams as these will be handled separatelyindices_statsorkibana_stats, only the corresponding data stream package-fields.yml should be updated. It can be found by searching for the term in the corresponding metricbeat module as the field will be documented in either the reference document or the fields in the _meta folderIf the corresponding data stream does not exist, it is most likely related to elastic/kibana#137691
See documentation to update packages locally
AC