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

Add an option WithMemory to opentelemetry's prometheus exporter #501

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

dxsup
Copy link
Member

@dxsup dxsup commented Apr 11, 2023

Description

Add an option WithMemory to OpenTelemetry's Prometheus exporter.

Related Issue

#496

Motivation and Context

Opentelemetry-go offers an option called WithMemory that allows users to control whether metrics that haven't been updated in the most recent interval are reported. Users may want to set it to true to scrape metrics continuously. So this option is exposed in the configuration file.

Since reporting all metrics every time can lead to performance issues if there are a large number of metrics, the default value of false has been retained to maintain the current behavior.

Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
@dxsup dxsup requested a review from NeJan2020 April 11, 2023 06:25
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
@dxsup dxsup merged commit 89b2917 into KindlingProject:main Apr 12, 2023
@dxsup dxsup deleted the otel-with-memory branch April 12, 2023 08:32
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.

2 participants