-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
prometheusremotewriteexporter does not support resource_to_telemetry_conversion #2412
Comments
Can you expend on this? |
@bogdandrutu Sorry will expand with our usecase/setup: Agents:
Collector:
So to make node metrics actually per-node and distinguish multiple deployments we would need to convert resource labels into prometheus labels, but to my knowledge this is currently not supported. Is there another approach that could achieve the same that we are missing? Thanks in advance |
We've forked The functionality can be enabled by adding this block to your exporter's config: resource_to_telemetry_conversion:
enabled: true The fork uses the |
I'm also trying to work through this problem with the stackdriver exporter in the opentelemetry-collector-contrib version. I have a resource attribute which I would like to be transformed into a metric label without having to go through the code and set the label on every single usage of the instrument when it's already set up as an attribute. I think the best place for this type of operation might be in the metric transform processor (https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/metricstransformprocessor). This way it would work for all metric exporter types. |
I have a working PR that performs this function (linked above). The config looks like this:
|
@arjantop-cai @seanhoughton @vibhavp does @krak3n's PR #2899 fix this issue for you? |
Is your feature request related to a problem? Please describe.
We would like to distinguish metrics from different deployments based on resource metrics.
Describe the solution you'd like
We use prometheusremotewriteexporter, support for resource_to_telemetry_conversion would be needed.
Describe alternatives you've considered
To my knowledge this is the only way to add more labels/attributes at collector level.
The text was updated successfully, but these errors were encountered: