Skip to content

Specify a low-memory temporality preference for the OTLP metrics exporter#2961

Merged
reyang merged 8 commits into
open-telemetry:mainfrom
jmacd:jmacd/lowmem
Dec 1, 2022
Merged

Specify a low-memory temporality preference for the OTLP metrics exporter#2961
reyang merged 8 commits into
open-telemetry:mainfrom
jmacd:jmacd/lowmem

Conversation

@jmacd
Copy link
Copy Markdown
Contributor

@jmacd jmacd commented Nov 18, 2022

Fixes #2738

Changes

Adds a low-memory aggregation temporality preference configuration for the OTLP metrics exporter, "lowmemory" which configures the OTLP exporter to use delta temporality for synchronous Counter and Histogram instruments.

Related issue: #1891

Note that a parallel change #2960 specifies limits and states that SDKs SHOULD remove timeseries from memory when they are stale and Delta aggregation temporality is configured, which they will be able to do in conjunction with the "lowmemory" preference here.

Note that this could benefit users even when metrics data is collected by Prometheus servers. The OTel Collector's prometheusexporter supports delta-to-cumulative translation, making it possible with a "lowmemory" OTLP exporter configuration to shift the memory requirement for cumulative timeseries calculation from the client to a collector.

@jmacd jmacd requested review from a team November 18, 2022 00:20
Comment thread specification/metrics/sdk_exporters/otlp.md Outdated
Comment thread specification/metrics/sdk_exporters/otlp.md Outdated
@github-actions
Copy link
Copy Markdown

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Nov 26, 2022
Comment thread specification/metrics/sdk_exporters/otlp.md Outdated
jmacd and others added 4 commits November 28, 2022 09:04
Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
@reyang reyang removed the Stale label Nov 28, 2022
@reyang reyang merged commit 23214ec into open-telemetry:main Dec 1, 2022
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minimum-memory-usage temporality preference for OTLP exporter

4 participants