-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[prometheus components] Translate the "target" info metric to/from resource attributes #8265
Comments
Hi @dashpole I have a little question around your plans to prepare the migration on my side. And same question for |
Additional question, does attributes will be happened if the metric target_info already exists ? Exemple 1: Exemple 2: Does |
I think that would be the correct thing to do, but we should discuss with the wider group.
In example 1, the incoming target_info will be translated into resource attributes. Then the attributes are modified, then the resource is translated into target info. The only difference between the initial target_info metric and the final one will be the modifications made in the processor, and the addition of job+instance labels (which are added to all metrics when scraped). For example 2, that is a good call-out. I don't think we handle that edge case correctly right nowRight now, we would expose duplicate metrics, but we should probably make a non-empty resource override the original target metric.
Yes. |
PRW also supports |
@Aneurysm9 good catch, the readme is not up to date :) |
We still need to implement resource parsing behavior in the receiver |
Now that the parsing behaviour is implemented, the only thing remaining is Can I help with the effort somehow? |
It might be good to discuss that with the wg (now that we are hopefully done with sparse histograms). I don't think there is much urgency to get rid of it, since it is an optional, off-by-default feature. I think its best to start with adding target_info in the prometheus exporter, and go from there. |
The spec was updated in open-telemetry/opentelemetry-specification#2381 to require the prometheus receiver to convert the "target" info metric to resource attributes, and to recommend converting resource attributes to the "target" info metric when exporting.
See https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#supporting-target-metadata-in-both-push-based-and-pull-based-systems for a description of the "target" info metric.
The text was updated successfully, but these errors were encountered: