Add containerd metrics configurability - #3
Open
bogn83 wants to merge 1 commit into
Open
Conversation
bogn83
force-pushed
the
add_containerd_metrics_configurability
branch
from
February 5, 2020 17:12
a5311bf to
7fc90e6
Compare
bogn83
force-pushed
the
add_containerd_metrics_configurability
branch
from
February 5, 2020 17:15
7fc90e6 to
a4e5e14
Compare
Author
|
Just found out that for user namespace remap scenarios the main difference compared to cadvisor is that instead of a cgroup slice (the case for cadvisor) we get the real container ID but sadly not the container name. |
Owner
|
Thanks for the pull request! I'm definitly in favor of adding this to the formula! I think it makes sense to deploy the complete disabled_plugins = ["cri"]
#root = "/var/lib/containerd"
#state = "/run/containerd"
#subreaper = true
#oom_score = 0
#[grpc]
# address = "/run/containerd/containerd.sock"
# uid = 0
# gid = 0
#[debug]
# address = "/run/containerd/debug.sock"
# uid = 0
# gid = 0
# level = "info"Maybe we can put the complete content into a YAML pillar parameter, like so (this should be the default): docker:
containerd:
config: |
disabled_plugins = ["cri"]That would make all options configurable, while being simple. Furthermore it enables consistent control over the complete file, which can't be guaranteed with What do you think? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
containerd provides its own metrics server exposing metrics in prometheus format if you configure an address for it in
/etc/containerd/config.toml. That file is watched and salt triggers a restart of the containerd systemd unit if it's changed.reload: trueis not used on the service because the containerd unit is not reloadable.