-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[receiver/k8sobjects] allow options to exclude namespace #36217
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
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
You can already set namespaces to scrape here: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/k8sobjectsreceiver/README.md?plain=1#L54 Do you want to enhance that option? |
@atoulme as far as i understand its a whitelist, i want the option to blacklist namespace |
OK, please explain how those 2 options would coexist. Please offer a configuration example. |
@atoulme i do think its more useful to exclude namespace since in my experience i want to stop watching namespaces with high amount of events
|
whitelist and blacklist are no longer in use ; typically we use allowlist and denylist. |
@atoulme a list of namespace to exclude |
hey @atoulme i would like to contribute this feature myself, can we agree on how (if you agree with my suggestion)? |
I am not a codeowner and cannot accept this enhancement. @dmitryax @hvaghani221 @TylerHelmuth please review |
@KyriosGN0 sorry for the delay on this. Would you like to get assigned to this issue? There is a related issue #39677 to add I think it makes sense to have a coordination here for all the k8s components that access the K8s APIServer, and check if we could have 2 options like:
|
@ChrsMark yes please assign it to me, I will check the other k8s components as well |
@KyriosGN0 as discussed at #39777 (comment), I wonder if the Having a |
@ChrsMark if the |
I see. I don't think field selectors in k8s support regexps. In that case, it would make sense to provide a |
My one issue is namespace created after collector has started running, i wouldn't want to restart the collector when namespace is created |
Component(s)
receiver/k8sobjects
Is your feature request related to a problem? Please describe.
yes, in our cluster we have seen that in certain namespace that is has a heavy spike pattern and generates around 50k events, this causes our otel daemonset to get killed my oom
Describe the solution you'd like
we would like the optiont to exclude namespace when using the k8sobjects receiver
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: