-
Notifications
You must be signed in to change notification settings - Fork 813
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
Revamp Docker check, more metrics, less bugs, support of CoreOS #1043
Conversation
for metric in LXC_METRICS: | ||
self._mountpoints[metric["cgroup"]] = self._find_cgroup(metric["cgroup"]) | ||
self._path_prefix = None | ||
docker_root = init_config.get('docker_root', '/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the default behavior work with existing users that don't have this new parameter set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this parameter is useful when the Agent run inside a container. When we do that, we can mount some part of the host filesystem to a directory, which should be this docker_root
. Then we use it as the root for our Docker daemon. By default, it is /
, which means that we keep the normal behavior.
Thanks it looks great! What's the behavior on Docker 0.9 now ? |
Also some minor fixes
The error got replaced by a more generic one: So that we will be able to detail it in our documentation. |
👍 |
Revamp Docker check, more metrics, less bugs, support of CoreOS
Very cool! Excited to try out the CoreOS support when 5.0 drops. Thank you! |
Revamp the Docker check and its configuration.
First, it fixes:
docker_root
.But also:
It is also a bit more flexible (if we want to support a new cgroup hierarchy) with better logging/warning.