ansible-collection-prometheus/roles/cadvisor/molecule
Bryan Quigley 39eddc920e enhancement: adding env, container labels options
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: #403
Signed-off-by: Bryan Quigley <code@bryanquigley.com>
2024-09-13 12:35:22 +00:00
..
alternative enhancement: adding env, container labels options 2024-09-13 12:35:22 +00:00
default feat: Add cadvisor role 2024-01-08 17:51:09 +01:00
latest feat: Add cadvisor role 2024-01-08 17:51:09 +01:00