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

Use target and metadata from context #8780

Merged

Conversation

gouthamve
Copy link
Member

@gouthamve gouthamve commented Mar 22, 2022

Description: This uses the target and metadata info passed in through context instead of looking them up via instance and job labels.

Link to tracking Issue: This fixes #5757 and #5663

Testing: I've done a Prometheus --> OTel Collector --> Another Prometheus with honor_labels: true and Prometheus federation. It used to fail before but now it works!

TODO:

@gouthamve
Copy link
Member Author

I'll resolve the conflicts once upstream PR is merged.

@gouthamve gouthamve force-pushed the get-scrape-cache-from-context branch from 2e9273f to 4a57155 Compare March 22, 2022 09:21
@dashpole
Copy link
Contributor

Looks good once the prerequisites are complete

@pmm-sumo
Copy link
Contributor

I think the rebase resulted in a bunch of go.mod/go.sum modified in components unrelated to changes

@gouthamve gouthamve force-pushed the get-scrape-cache-from-context branch from 4cd8f8f to b52d3e1 Compare March 29, 2022 17:19
@gouthamve gouthamve requested a review from mx-psi as a code owner March 29, 2022 17:19
@gouthamve gouthamve force-pushed the get-scrape-cache-from-context branch 3 times, most recently from ae7dd0c to e57a529 Compare March 30, 2022 20:08
@gouthamve
Copy link
Member Author

@dashpole @Aneurysm9 @pmm-sumo Thanks for the initial review, I think I have addressed all the comments now. Could you take another look when you have some time?

@jpkrohling jpkrohling force-pushed the get-scrape-cache-from-context branch from edaadf0 to a0a4501 Compare March 31, 2022 12:24
@jpkrohling
Copy link
Member

PR updated to account for the v0.48.0 changes

@gouthamve gouthamve force-pushed the get-scrape-cache-from-context branch from 3d0b4a4 to 7db0c68 Compare March 31, 2022 15:39
@jpkrohling
Copy link
Member

Nice, github now allows us to restart only the failed jobs. Once we have a green build, I'll merge this.

gouthamve and others added 10 commits April 5, 2022 08:11
This fixes #5757 and #5663

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
prometheus/prometheus#10473 has been merged

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
Needed to run make gotidy; make golint

strings.Title is deprecated

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
@shacharSirotkin
Copy link

Hi,
I know it's a pretty old PR but I would be happy if you can upload a working config for Prometheus federation.
I'm struggling with it for a long time.
Thanks 🙏

@mx-psi
Copy link
Member

mx-psi commented Feb 5, 2024

Hi, I know it's a pretty old PR but I would be happy if you can upload a working config for Prometheus federation. I'm struggling with it for a long time. Thanks 🙏

Please open a new issue for this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus Receiver - honor_labels set to true doesnt work with federation
7 participants