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

Metrics: Add support to emit metrics to multiple namespaces #832

Closed
1 task
dpk83 opened this issue Dec 15, 2022 · 4 comments
Closed
1 task

Metrics: Add support to emit metrics to multiple namespaces #832

dpk83 opened this issue Dec 15, 2022 · 4 comments
Labels
comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva

Comments

@dpk83
Copy link

dpk83 commented Dec 15, 2022

Issue with OpenTelemetry.Exporter.Geneva

Is this a feature request or a bug?

  • [ x] Feature Request
  • Bug

What is the expected behavior?
User should be configure their application to send metrics to more than one namespace i.e. different set of metrics to different namespace.

What do you expect to see?

Developer should be able to specify the following

  • Metrics with names starting with XYZ should be sent to monitoring namespace A
  • Metrics with names starting with ABC should be sent to monitoring namespace B

It should also pick the best match from the configuration e.g. if there are 2 entries

  • Metrics with names X.Y goes to namespace A1
  • Metrics with name X goes to namespace A2

then for any metrics with names X.Y.* should pick A1 as namespace, any other metrics with X.* should pick to A2

What is the actual behavior?

Currently only one namespace is supported. All metrics are emitted to a single namespace with no capability to send it to different namespaces.

Additional Context

Add any other context about the feature request here.

@dpk83 dpk83 added the comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva label Dec 15, 2022
@dpk83
Copy link
Author

dpk83 commented Dec 15, 2022

@reyang

@reyang
Copy link
Member

reyang commented Jan 13, 2023

I think it's very likely that such feature will be implemented by allowing a convention - the namespace will be provided as a dimension (or maybe even better, modeled as a Resource), which doesn't require any change on the SDK/Exporter. The downstream processing would be able to understand the special dimension/resource and route the metrics stream to the desired destination (and of course remove the dimension if intended).

We can keep this open for tracking purpose (most likely no code change needed in this repo, we might need some doc updates to explain how to use it).

@utpilla
Copy link
Contributor

utpilla commented Apr 3, 2023

@dpk83 Starting 1.5.0-alpha.2 version of OpenTelemetry.Exporter.Geneva, you can now send metrics to any custom combination of account and namespace by adding the respective reserved dimensions to your desired metrics. Please look at this PR #1111 description for more information.

Does this solve your problem?

@dpk83
Copy link
Author

dpk83 commented Apr 5, 2023

Does this solve your problem?

Thanks @utpilla. It does solve the issue partially and atleast unblocks our users. The other support needs to come from .NET Meter APIs first dotnet/runtime#84321

@dpk83 dpk83 closed this as completed Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:exporter.geneva Things related to OpenTelemetry.Exporter.Geneva
Projects
None yet
Development

No branches or pull requests

3 participants