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 option to export metrics to multiple backends #3514

Closed
sk- opened this issue May 19, 2023 · 3 comments
Closed

Add option to export metrics to multiple backends #3514

sk- opened this issue May 19, 2023 · 3 comments
Assignees
Labels
spec:metrics Related to the specification/metrics directory

Comments

@sk-
Copy link

sk- commented May 19, 2023

What are you trying to achieve?
We are evaluating different metrics backends, however currently there does not seem to be any way to export the metrics to multiple backends at the same time other than using the OtelCollector.

By paraphrasing open-telemetry/opentelemetry-js#532

this is handy if transitioning from one vendor/OSS project to another for the [metric] backend. You might want to export to both during the transitional phase.

Additional context.

This is currently possible for traces. See for example the documentation added in open-telemetry/opentelemetry-js#537

@sk- sk- added the spec:metrics Related to the specification/metrics directory label May 19, 2023
@joaopgrassi
Copy link
Member

joaopgrassi commented May 19, 2023

Maybe this should be discussed in OpenTelemetry JS? AFAIK you can do this by configuring another exporter/reader on the MeterProvider.

@llc1123
Copy link

llc1123 commented May 19, 2023

Calling MeterProvider.addMetricReader multiple times should work?

@sk-
Copy link
Author

sk- commented May 19, 2023

Cool thanks, attaching multiple readers sounds like the solution I was looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:metrics Related to the specification/metrics directory
Projects
None yet
Development

No branches or pull requests

4 participants