prometheus.prometheus.cadvisor role – cAdvisor

Note

This role is part of the prometheus.prometheus collection (version 0.12.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install prometheus.prometheus.

To use it in a playbook, specify: prometheus.prometheus.cadvisor.

Entry point main – cAdvisor

Synopsis

Parameters

Parameter

Comments

cadvisor_binary_install_dir

string

Advanced

Directory to install cadvisor binary

Default: "/usr/local/bin"

cadvisor_binary_local_dir

string

Enables the use of local packages instead of those distributed on github.

The parameter may be set to a directory where the cadvisor binary is stored on the host where ansible is run.

This overrides the cadvisor_version parameter

cadvisor_binary_url

string

URL of the cadvisor binary file

Default: "https://github.com/{{ _cadvisor_repo }}/releases/download/v{{ cadvisor_version }}/cadvisor-{{ cadvisor_version }}-linux-{{ go_arch }}"

cadvisor_listen_ip

string

Address on which cadvisor will listen

Default: "0.0.0.0"

cadvisor_port

string

Port on which cadvisor will listen

Default: "8080"

cadvisor_prometheus_endpoint

string

Path under which to expose metrics

Default: "/metrics"

cadvisor_skip_install

boolean

cAdvisor installation tasks gets skipped when set to true.

Choices:

  • false ← (default)

  • true

cadvisor_system_group

string

Advanced

System group for cadvisor

Default: "root"

cadvisor_system_user

string

Advanced

cAdvisor user

Default: "root"

cadvisor_version

string

cAdvisor package version. Also accepts latest as parameter.

Default: "0.47.2"

Authors

  • Prometheus Community