-
Notifications
You must be signed in to change notification settings - Fork 138
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
enhancement: adding env/container labels options #407
Conversation
21d6276
to
0d56a21
Compare
Docs Build 📝Thank you for contribution!✨ This PR has been merged and the docs are now incorporated into |
0d56a21
to
61cc69c
Compare
61cc69c
to
046020a
Compare
The failures seem unrelated to the PR - failing to pull image. |
046020a
to
9e9f3ef
Compare
@gardar are you the right person to review? Thanks! |
cadvisor_store_container_labels: | ||
description: "do not store all container labels" | ||
type: "bool" | ||
default: false |
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.
Shouldn't this be
default: false | |
default: true |
as defined in defaults/main.yml
? Or should defaults/main.yml
perhaps be set to false
?
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.
Sorry, you are correct. Updating description too
9e9f3ef
to
e04f959
Compare
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.
LGTM!
Thanks! Just wanted to double check if any other action is needed before merging. |
Add following - cadvisor_env_metadata_whitelist - cadvisor_whitelisted_container_labels - cadvisor_store_container_labels Tested with this simple playbook: --- - name: Install cAdvisor hosts: localhost become: yes tasks: - name: Import cAdvisor role import_role: name: cadvisor vars: cadvisor_docker_only: true cadvisor_enable_metrics: [ "cpu", "memory", "network", "oom_event" ] cadvisor_whitelisted_container_labels: [ "com.docker.compose.oneoff" ] cadvisor_env_metadata_whitelist: [ "JEKYLL_ENV", "PATH" ] cadvisor_store_container_labels: false Also tested dropping the options, which is why I decided to explicitly set store_container_labels: true (which is the cadvisor default). Closes: prometheus-community#403 Signed-off-by: Bryan Quigley <code@bryanquigley.com>
e04f959
to
39eddc9
Compare
No sorry, I just needed to fix up the CI config a bit for the tests to pass successfully. |
Add following
Tested with this simple playbook:
Also tested dropping the options, which is why I decided to explicitly set store_container_labels: true (which is the cadvisor default).
Closes: #403