Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Dec 1, 2022

Conversation

jmacd
Copy link
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
@github-actions
Copy link

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
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
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