-
Notifications
You must be signed in to change notification settings - Fork 440
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 a mechanism to ignore certain receivers when deriving service from config #527
Comments
Hi @jpkrohling, I have understood some parts of the issue and some parts I am processing more, I would love to work on this issue 😄 |
I think @VineethReddy02 worked recently on this so he might have a clear understanding of what needs to be done, but from what I remember, the problem is that we are using a generic parser for this receiver, which is a scraper, and we shouldn't parse scrapers at all. If you need more help, let me or @VineethReddy02 know. |
@jpkrohling |
I can assist in replicating this issue if needed. The workaround for me was to use
|
Thanks a lot for all the help and making it much more easier for me to understand it better @jpkrohling 🥺 I will try to replicate the issue to understand it even better and then will suggest the approach to fix this as PR and will surely ping you or @VineethReddy02 or @jsirianni for any help that is needed, thanks a lot again for all the help to everyone 😄 |
I'm able to reproduce this issue. It looks like we expect |
Hi @VineethReddy02, thanks a lot for this detailed help, I think I understood some part of it but I have a few questions regarding how to ignore scrapers? And do we need another Thanks a lot again for all the help! |
The scrapers are by default ignored. In operator, we have custom logic for all receivers that aren't scrapers to expose the service ports as provided in receiver config, so the leftover receivers are considered as scrapers. The root cause behind this issue is we have a |
Thanks a lot for all the help and guidance @VineethReddy02 , I have created a PR which is an attempt to work on it after reading about it more from here https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kubeletstatsreceiver Looking forward for the feedback to make it better, thanks a lot! |
The specific receiver configuration that sparked this issue:
This fails, because the service derives that there are two endpoints, each with port 10250, giving this error:
The problem here is that
endpoint
doesn't define an endpoint for something connecting to the collector, rather it's an endpoint that is scraped by the collector. These ports shouldn't be mapped in the service, since they are not for inbound connections.Currently the workaround for this is to not use
endpoint
for this specific scenario and have the receiver figure it out, but I could see this being a problem with other "scraping" receivers as well.Ideally, there'd be a way to skip gathering ports from certain receivers, or even a way to disable the port auto-detection as a whole.
The text was updated successfully, but these errors were encountered: