-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
feat(cgroups.plugin): resolve nomad containers name (docker driver only) #13481
feat(cgroups.plugin): resolve nomad containers name (docker driver only) #13481
Conversation
@xkisu, hey 👋 Is this name ok? What do you think? |
Sorry, I missed this! Yeah that's perfect, I've been using that format on my fork for a couple of weeks and it's got just enough information to be useful to Nomad admins and not be too long 👍 |
Big thanks for helping us, @xkisu! As it turned out it was easy to implement, but somehow I missed that Nomad exports env vars when was doing the initial investigation. |
https://build.opensuse.org/request/show/994622 by user mia + dimstar_suse - Drop netdata-smartd-log-path.patch - Update to 1.36.0 (go.d.plugin 0.35.0) Collectors * New + Add PgBouncer collector (go.d/pgbouncer) gh#netdata/netdata#748 + Add WireGuard collector (go.d/wireguard) gh#netdata/netdata#744 + Add PostgresSQL collector (go.d/postgres) gh#netdata/netdata#718 + Add Chrony collector (go.d/chrony) gh#netdata/netdata#678 + Add Kubernetes State collector (go.d/k8s_state) gh#netdata/netdata#673 * Improvements + Add WireGuard description and icon to dashboard info gh#netdata/netdata#13483 + Resolve nomad containers name (cgroups.plugin) gh#netdata/netdata#13481 + Update postgres dashboard info gh#netdata/netdata#13474 + Improve Chrony dashboard info gh#netdata/netdata#133
Summary
Fixes: #12419
Closes: #13475
This PR adds containers name resolution for Nomad tasks. Name: "NAMESPACE-JOBNAME-TASKNAME-SHORTALLOCID".
Before this PR:
docker ps ...
ifdocker
command is available (Netdata running on the host).docker
command is not available (Netdata running inside a Docker container).This PR changes:
docker inspect ...
ifdocker
command is available. This is equivalent to the ContainerInspect endpoint (but we can apply additional formatting).Test Plan
Tested both scenarios: Netdata is running in a Docker container/Netdata installed on the host.
1st one is nomad, 2nd one is docker.
Additional Information
For users: How does this change affect me?