Clarify metric temporality support by Elasticsearch version and ingestion path #9604
<!-- docs-pr-ai-menu:start -->
Elastic Docs AI PR menu
Check the box to run an AI review for this pull request.
docs-review). Status: not started. <!-- docs-pr-ai-menu:docs-review -->Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.
<!-- docs-pr-ai-menu:end -->
🔍 Preview links for changed docs
Elastic Docs Style Checker (Vale)
Summary: 1 warning found
<details>
<summary>⚠️ Warnings (1): Fix when the suggestion improves clarity or correctness.</summary>
| File | Line | Rule | Message |
|------|------|------|----------|
| manage-data/data-store/data-streams/metric-temporality.md | 88 | Elastic.Spelling | 'temporalities' is a possible misspelling. |
</details>
---
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.
<!-- Sticky Pull Request Commentelastic-vale-results -->
@felixbarny could you review these three PRs for technical accuracy? They come out of the OTLP endpoint disambiguation (elastic/docs-content#8540) and the temporality inconsistencies (elastic/docs-content#7963):
/_otlp as its own ingest path. It's now one of the gateway's two write paths, alongside the bulk API. Please check the new paragraph on what /_otlp is, in particular the statement that traces aren't enriched unless the elasticapm processor and connector run first.As the ES exporter now also supports temporality, I think we can simplify and remove this entirely. @osullivandonal, could you confirm that this is the case?
Maybe we could use bullet points for the availability information to make it easier to scan.
devdocs side LGTM
@felixbarny correct the ES Exporter now supports both delta and cumulative temporality for histograms and exponential histograms, however for Sums we currently do not, there is a PR upstream to add this for sums: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/52989
For which versions are we enabling temporality support by default? 9.5+? Does that mean that for the managed OTLP endpoint, we support temporality consistently for 9.5+, where 9.5.0-9.5.2 are covered by the ES exporter and 9.5.3 is covered by the OTLP Endpoint (assuming the sum support gets in)?
In the ES Exporter cumulative temporality is supported from ES >= v9.5.0, see here.
Done!
@felixbarny @osullivandonal Thanks! I shortened the sentence instead of removing it. It now says: "On Elastic Cloud Hosted, the Managed OTLP Endpoint preserves temporality for deployments running Elastic Stack 9.5.3 or later." The part about the bulk path supporting only delta temporality is gone, because it was wrong both ways: that path takes delta histograms and cumulative counters.
I kept the 9.5.3 line for two reasons:
1. Sums. Until open-telemetry/opentelemetry-collector-contrib#52989 ships, the exporter writes no temporality for sums and stores delta sums as gauges, so 9.5.0 through 9.5.2 can't be fully covered by the exporter.
2. Histograms. The exporter enables cumulative histograms on its own when it detects Elasticsearch 9.5.0 or later, from exporter 0.165.0, with version_detection on by default. That answers "from which version by default" for a standalone Collector. For the Managed OTLP Endpoint, it depends on whether version detection runs on the bulk path. The README says it can't when the endpoint is resolved per request, and with detection off the exporter drops cumulative histograms on every version.
@osullivandonal can you confirm whether version detection is on for the Managed OTLP Endpoint bulk path? If it is, and once sums land, I'll change the sentence to 9.5. If it isn't, 9.5.3 stays as the line for ECH.
The full feature-by-version table is in elastic/opentelemetry#694.
Version detection is off at present for the motlp bulk path: https://github.com/elastic/hosted-otel-collector/blob/main/helm/index/templates/configmap.yaml#L247 this is due to the endpoint path being a nop. The ES Exporter at present only supports version detection at startup against the endpoint listed in the config. To support version detection here we need to enable version detection per request, which is a large change to the ES Exporter. cc. @felixbarny
@osullivandonal thanks, that settles it. 9.5.3 stays as the line for Elastic Cloud Hosted. Both PRs already say that, so there's nothing more to change here or in elastic/opentelemetry#694. I can always update the sentence later if anything changes.
and [`exponential_histogram`](elasticsearch://reference/elasticsearch/mapping-reference/exponential-histogram.md). By default, histograms use delta [temporality](/manage-data/data-store/data-streams/metric-temporality.md). {applies_to}`stack: ga 9.5` Cumulative temporality is also supported for `exponential_histogram`.
Just noticed this tag kind of hanging out there.
This might be a little confusing saying it needs to be mapped, but then saying the used doesn't have to define the mapping themself. Could we pull line 78 up to this bullet?
Should we add an intro here? Goes straight from H2 to H3 now.
A couple of suggestions for your consideration, but overall LGTM!
I added one!
kosabogi
alexandra5000
Part of #7963.
Summary
Several pages stated temporality support without the version or ingestion-path limits that apply to it. This PR scopes those statements and links to the full matrix in Histogram and counter temporality (updated in elastic/opentelemetry#694). The 9.2–9.4 and 9.5+ behavior is verified against the Elasticsearch
x-pack/plugin/otel-datasource.Changes
manage-data/ingest/otlp-endpoint.md: Metric temporality now applies from 9.2. It splits the 9.5+ behavior (temporality preserved in atemporalitydimension) from the 9.2–9.4 behavior (cumulative sums stored as counters, delta sums as gauges, cumulative histograms rejected).time-series-data-stream-tsds.md: scopes delta temporality support for counters to 9.5+.metric-temporality.md: says that on ECH, the Managed OTLP Endpoint preserves temporality only on 9.5.3 and later.reference/managed-inputs/managed-otlp-endpoint.md: rewrites the temporality paragraph under Metrics ingestion on ECH to cover the supported temporality on each route.🤖 Generated with Claude Code