-
Notifications
You must be signed in to change notification settings - Fork 835
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
Support Resource in the Prometheus Exporter #867
Comments
What is the desired behaviour to support Resource? If there is clear guidance, I should be able to implement it. I tried changing the PrometheusSerializer to append |
It is going to be specified at open-telemetry/opentelemetry-specification#2266 to drop all resource attributes, only converting |
Hi! To clarify things on my end: is this about exposing the resource attributes passed, for example to |
This is about including resource attributes as part of the serialized prometheus output data. As far as I know this behavior is actually not in the specification so this issue might actually just be closed as not planned. It is open so we can determine what other SIGs do with resource data in prometheus and attempt to be consistent. |
We have spec texts on how to transform OpenTelemetry resource attributes to Prometheus labels: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md#resource-attributes-1. |
Similar issue in the net open-telemetry/opentelemetry-dotnet#3087 and java sdk open-telemetry/opentelemetry-java#4552 with a follow up discussion on potential specification improvements open-telemetry/opentelemetry-specification#2640. So we should be able to update the PrometheusSerializer.serialize function so that it also transforms the resource attributes available in the ResourceMetrics input to a target info group. Is there some other places that needs to be updated ? |
Yes, that's where we need to update. Do you plan to work on this? If so I can assign this to you. |
There is a related spec issue right now to determine precedence of keys open-telemetry/opentelemetry-specification#2535 |
@legendecas I'm trying to evaluate the work required for our use case atm. I'm still questioning what should happen downstream, in the collectors, as the |
@klacabane I'm not sure what you are referring to as the |
We need to transform the resource attributes into an |
I can work on this 🙂 |
The
Resource
s were added to the default SDK in opentelemetry-js#846. They need to be integrated in the export workflow of the Prometheus exporter similar to opentelemetry-js#843The text was updated successfully, but these errors were encountered: