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
[kubernetes] Events from all namespaces #2838
Comments
Thanks for opening this issue. As @masci mentioned you can specify another namespace in the instance of The options you suggest seem reasonable and we'll work on supporting them for the next release. Thanks again |
+1 |
This change makes events collection not limited anymore to one namespace thanks to the new option `collect_events_from_all_namespaces`. Fixes DataDog#2838
This change makes events collection not limited anymore to one namespace thanks to the new option `collect_events_from_all_namespaces`. Fixes DataDog#2838
Moving to the 5.11 milestone, the merge window for 5.10 is closing soon and we still need to assess what solution would be best to allow collecting events from more than one namespace. |
To me, it looks like we can specify one namespace at a time https://github.com/DataDog/dd-agent/blob/master/checks.d/kubernetes.py#L426 .Hence we would need a dd agent per namespace to watch for events. Would it possible to get wildcard support ? |
Yes @alexouzounis that's the plan (allowing a list of namespace and probably regex). It's still in our backlog but should be ready for 5.11 |
Nice! Will keep an eye on it then ;) |
The configuration key 'namespace' is renamed 'namespaces' so multiple names can be specified (if present the old key will be added to the 'namespaces' list). A new configuration key 'namespace_name_regexp' is added to allow namespaces selection using regexp. We now pull every event from Kubernetes and filter them the namespace list.
The configuration key 'namespace' is renamed 'namespaces' so multiple names can be specified (if present the old key will be added to the 'namespaces' list). A new configuration key 'namespace_name_regexp' is added to allow namespaces selection using regexp. We now pull every event from Kubernetes and filter them the namespace list.
Updating Kubernetes check to handle multiple namespaces fix #2838
from #2551
Currently the Kubernetes events feature only gets events from the
default
namespace. This means that datadog is unable to capture critical events from thekube-system
namespace as well as any other user-defined namespaces.I believe the dd-agent kubernetes configuration should support two options:
False
)default
only)This will not change the functionality of new 5.9 deployments but will enable improved kubernetes support down the road for all users.
relevant code: https://github.com/DataDog/dd-agent/blob/master/checks.d/kubernetes.py#L362
The text was updated successfully, but these errors were encountered: