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

Implement prometheus receiver target allocator #12586

Conversation

secustor
Copy link
Member

Description:

Adding the capability to dynamically request jobs from a TargetAllocator instance ( OpenTelemetryOperator ) or compatible API.

Supersedes:

Link to tracking Issue: #7944

Testing:

Added unit test to confirm that the correct jobs have been added.

Documentation:
Documentation has been added to the README of prometheusreceiver

cc: @jaronoff97 @Aneurysm9

secustor added 21 commits May 24, 2022 11:53
# Conflicts:
#	CHANGELOG.md
#	exporter/prometheusexporter/go.sum
#	go.sum
#	processor/spanmetricsprocessor/go.sum
#	receiver/prometheusreceiver/go.mod
#	receiver/prometheusreceiver/go.sum
#	testbed/go.sum
# Conflicts:
#	CHANGELOG.md
#	processor/spanmetricsprocessor/go.sum
#	receiver/prometheusreceiver/go.mod
# Conflicts:
#	cmd/configschema/go.mod
#	cmd/configschema/go.sum
#	go.mod
#	go.sum
@secustor secustor requested a review from a team July 18, 2022 19:44
Copy link
Contributor

@jaronoff97 jaronoff97 left a comment

Choose a reason for hiding this comment

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

Overall, I like the approach here. Left one question following up on @dashpole's thread. One question: How could we prevent some jobs from getting target-allocated with this configuration? The use case is for a collector doing self-monitoring on it's prometheus port 0.0.0.0:8888 where if that gets target allocated only one collector is monitored. The workaround is to just have a service and use a service monitor, but i imagine some people won't want that.

@secustor secustor requested a review from Aneurysm9 July 23, 2022 19:30
@dashpole dashpole added the ready to merge Code review completed; ready to merge by maintainers label Aug 4, 2022
@bogdandrutu
Copy link
Member

I am so sorry that I missed this, can you rebase the PR and will merge this.

@secustor
Copy link
Member Author

@bogdandrutu no worries.

I have cleaned up the errors which come from the modified receiver, but there seem still to be issues with the rabbitmqreceiver

@secustor
Copy link
Member Author

@bogdandrutu The issues have been fixed. you can now merge.

@bogdandrutu bogdandrutu merged commit 41eceae into open-telemetry:main Aug 19, 2022
@secustor secustor deleted the implement_prometheus_receiver_target_allocator branch August 19, 2022 14:26
@dashpole dashpole added the receiver/prometheus Prometheus receiver label Sep 7, 2022
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.

6 participants