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 the new scrape config endpoint for the prometheus receiver #14464

Merged

Conversation

jaronoff97
Copy link
Contributor

@jaronoff97 jaronoff97 commented Sep 23, 2022

Description:
This PR fixes issue 1106 in the operator which relates to the collector failing to get scrape config jobs from the target allocator. Before this is merged this pr needs to be merged which adds this new endpoint.

Link to tracking Issue:
open-telemetry/opentelemetry-operator#1106

Testing:
This was tested by running a custom collector in a kubernetes cluster with the changes in the operator and target allocator. You can see the collector pulling expected jobs from the target allocator here.

Screen Shot 2022-09-28 at 6 50 49 PM

Documentation:

Closes #14597

@jaronoff97 jaronoff97 changed the title Use the new scrape config endpoint Use the new scrape config endpoint for the prometheus receiver Sep 23, 2022
@jaronoff97 jaronoff97 marked this pull request as ready for review September 28, 2022 23:17
@jaronoff97 jaronoff97 requested a review from a team September 28, 2022 23:17
Copy link
Contributor

@moh-osman3 moh-osman3 left a comment

Choose a reason for hiding this comment

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

Just a couple general questions I have.

receiver/prometheusreceiver/config.go Show resolved Hide resolved
Copy link
Contributor

@moh-osman3 moh-osman3 left a comment

Choose a reason for hiding this comment

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

A few more followup questions for my understanding.

receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
receiver/prometheusreceiver/metrics_receiver.go Outdated Show resolved Hide resolved
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.

LGTM otherwise

@dashpole dashpole added ready to merge Code review completed; ready to merge by maintainers receiver/prometheus Prometheus receiver labels Oct 5, 2022
@codeboten codeboten merged commit 21f36f8 into open-telemetry:main Oct 6, 2022
@jaronoff97 jaronoff97 deleted the 1106-use-scrape-configs-endpoint branch October 12, 2022 17:49
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
…telemetry#14464)

 This fixes issue 1106 in the operator which relates to the collector failing to get scrape config jobs from the target allocator. Before this is merged this pr needs to be merged which adds this new endpoint.
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/prometheus Prometheus receiver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus Receiver failing on using target allocator's scrape config
5 participants