Skip to content

Conversation

felixbarny
Copy link
Member

@felixbarny felixbarny commented Sep 1, 2025

Adds support for the following mapping hints that can be provided as an elasticsearch.mapping.hints data point attribute:

  • aggregate_metric_double: map histograms as aggregate_metric_double
  • _doc_count: add a _doc_count field to the metric document

This mimics functionality of the OTel collector's elasticsearchexporter, which is used to power the metrics-based APM UI.

Part of #133057

After #133898 is merged, mapping hints will need to be wired in to to the MetricDocumentBuilder. There's no strong dependency between these PRs, though. They can be independently reviewed and merged.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@elasticsearchmachine elasticsearchmachine added Team:StorageEngine v9.2.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Sep 1, 2025
@felixbarny felixbarny enabled auto-merge (squash) September 1, 2025 11:43
@felixbarny felixbarny merged commit b1b2121 into elastic:main Sep 1, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/TSDB You know, for Metrics Team:StorageEngine v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants