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/k8sobjects] Allow regexp with excluding namespaces in watch #31761

Closed
mk-raven opened this issue Mar 14, 2024 · 4 comments
Closed

[receiver/k8sobjects] Allow regexp with excluding namespaces in watch #31761

mk-raven opened this issue Mar 14, 2024 · 4 comments
Labels
enhancement New feature or request needs triage New item requiring triage receiver/k8sobjects

Comments

@mk-raven
Copy link

Component(s)

receiver/k8sobjects

Is your feature request related to a problem? Please describe.

In many cases we are not interested get events from some namespaces. Its could be great if we can use it and dont make overhead about amount of event data in our storage.

Describe the solution you'd like

For example allow namespaces = [opentelemetry*], excluded namespace = [*system]

Describe alternatives you've considered

No response

Additional context

No response

@mk-raven mk-raven added enhancement New feature or request needs triage New item requiring triage labels Mar 14, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@TylerHelmuth TylerHelmuth changed the title Allow regexp with excluding namespaces in watch [receiver/k8sobjects] Allow regexp with excluding namespaces in watch Mar 14, 2024
@TylerHelmuth
Copy link
Member

@mk-raven we have a namespaces configuration option that allows you to specify the namespaces from which to collect

@hvaghani221
Copy link
Member

@mk-raven This should not be implemented at the receiver level since the kube-apiserver doesn't support the use of wildcards in the namespace.

I recommend getting events from all namespaces and using filterprocessor to include/exclude events from specified namespaces.

@TylerHelmuth
Copy link
Member

Since we have existing solutions I am going to close this issue. @mk-raven please let me know if the proposed solutions dont work and I can reopen and we can keep discussing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage receiver/k8sobjects
Projects
None yet
Development

No branches or pull requests

3 participants