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

[receiver/prometheus] Fix static scrape config with Target Allocator #36063

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

povilasv
Copy link
Contributor

@povilasv povilasv commented Oct 29, 2024

Description

Instead of clearing out prometheus scrape configuration I changed the code to copy the initial config every time we sync it from Target Allocator

Link to tracking issue

Fixes #36062 and open-telemetry/opentelemetry-operator#3034

Testing

tested in kind cluster with custom image

Documentation

@github-actions github-actions bot added the receiver/prometheus Prometheus receiver label Oct 29, 2024
@povilasv povilasv marked this pull request as ready for review October 29, 2024 12:35
@povilasv povilasv requested a review from a team as a code owner October 29, 2024 12:35
@atoulme
Copy link
Contributor

atoulme commented Nov 9, 2024

Interesting. Can you please add a test?

@povilasv
Copy link
Contributor Author

@atoulme added a test 👍

@dashpole dashpole added the ready to merge Code review completed; ready to merge by maintainers label Nov 14, 2024
@TylerHelmuth TylerHelmuth merged commit b14856e into open-telemetry:main Nov 18, 2024
167 of 168 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 18, 2024
RutvikS-crest pushed a commit to RutvikS-crest/opentelemetry-collector-contrib that referenced this pull request Dec 9, 2024
…pen-telemetry#36063)

#### Description

Instead of clearing out prometheus scrape configuration I changed the
code to copy the initial config every time we sync it from Target
Allocator

#### Link to tracking issue

Fixes
open-telemetry#36062
and open-telemetry/opentelemetry-operator#3034

<!--Describe what testing was performed and which tests were added.-->

#### Testing

tested in kind cluster with custom image

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Co-authored-by: David Ashpole <dashpole@google.com>
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…pen-telemetry#36063)

#### Description

Instead of clearing out prometheus scrape configuration I changed the
code to copy the initial config every time we sync it from Target
Allocator

#### Link to tracking issue

Fixes
open-telemetry#36062
and open-telemetry/opentelemetry-operator#3034

<!--Describe what testing was performed and which tests were added.-->

#### Testing

tested in kind cluster with custom image

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Co-authored-by: David Ashpole <dashpole@google.com>
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.

[receiver/prometheus] static scape config doesn't work with Target Allocator
5 participants