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

[prometheusexporter] Export target_info metrics #11514

Merged

Conversation

gouthamve
Copy link
Member

This finally fixes #8265

The issue is that we have the resource attributes sent in each metric, and we need to dedupe to unique resourceAttributes based on job + instance labels.

I kinda hacked together something, not sure if this is the way to go. Looking forward to some feedback before I proceed further.

@gouthamve gouthamve requested a review from a team June 23, 2022 17:31
@gouthamve gouthamve requested a review from Aneurysm9 as a code owner June 23, 2022 17:31
@gouthamve
Copy link
Member Author

cc @dashpole

Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be away for a few weeks, so unfortunately I won't be able to complete my review soon. But I'll do one when i'm back

exporter/prometheusexporter/collector.go Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jul 8, 2022
@mx-psi mx-psi removed the Stale label Jul 8, 2022
@dashpole
Copy link
Contributor

lgtm, assuming you fix the build failures from rebasing

@gouthamve gouthamve force-pushed the export-target-info-prometheusexporter branch from bf512ce to 0c13330 Compare July 13, 2022 08:02
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
@gouthamve gouthamve force-pushed the export-target-info-prometheusexporter branch from 0c13330 to f9fb6bf Compare July 13, 2022 08:04
@dashpole dashpole added the comp:prometheus Prometheus related issues label Jul 13, 2022
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jul 28, 2022
@dashpole dashpole added exporter/prometheus ready to merge Code review completed; ready to merge by maintainers and removed Stale ready to merge Code review completed; ready to merge by maintainers labels Jul 28, 2022
@mx-psi mx-psi merged commit 9dead84 into open-telemetry:main Aug 3, 2022
@gouthamve gouthamve deleted the export-target-info-prometheusexporter branch August 4, 2022 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[prometheus components] Translate the "target" info metric to/from resource attributes
3 participants