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

Add scrape configs endpoint #1124

Merged

Conversation

jaronoff97
Copy link
Contributor

This PR is the first one needed in order to close #1106. We add a new endpoint which exposes the scrape configs that the target allocator has access to both from its configmap and also from prometheus CRDs.

A followup PR will be made in collector contrib to start using the endpoint.

Makefile Outdated Show resolved Hide resolved
@jaronoff97 jaronoff97 marked this pull request as ready for review September 28, 2022 21:59
@jaronoff97 jaronoff97 requested a review from a team September 28, 2022 21:59
Copy link
Contributor

@kristinapathak kristinapathak left a comment

Choose a reason for hiding this comment

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

Very excited for this. 🙂

Makefile Outdated Show resolved Hide resolved
cmd/otel-allocator/discovery/discovery.go Show resolved Hide resolved
cmd/otel-allocator/main.go Outdated Show resolved Hide resolved
cmd/otel-allocator/main.go Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
cmd/otel-allocator/watcher/file.go Outdated Show resolved Hide resolved
pkg/collector/reconcile/service.go Show resolved Hide resolved
pkg/collector/container.go Show resolved Hide resolved
cmd/otel-allocator/main.go Show resolved Hide resolved
cmd/otel-allocator/main.go Show resolved Hide resolved
pkg/collector/container.go Show resolved Hide resolved
pkg/collector/container.go Outdated Show resolved Hide resolved
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
@jaronoff97 jaronoff97 requested a review from pavolloffay October 3, 2022 18:34
@pavolloffay pavolloffay merged commit 942ed4d into open-telemetry:main Oct 4, 2022
@jaronoff97 jaronoff97 deleted the 1106-default-settings-prometheus-cr branch October 12, 2022 17:49
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* Add scrape configs endpoint

* Fix a borked chan

* Fix some defaults

* comments and cleaning

* Goimports

* Pass linting

* Reuse and docs

* Update pkg/collector/container.go

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>

Co-authored-by: Pavol Loffay <p.loffay@gmail.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
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.

target allocator missing default value for scrape settings for prometheusCR
6 participants