observability/roles/cadvisor
2024-11-08 17:10:23 +01:00
..
defaults/main update(cadvisor): bump version to 0.51.0 2024-11-08 17:10:23 +01:00
meta feat(cadvisor): add state=absent support to role, move to fully qualified module names, cleanup 2024-10-13 17:02:35 +02:00
tasks feat(cadvisor): add state=absent support to role, move to fully qualified module names, cleanup 2024-10-13 17:02:35 +02:00
vars feat(cadvisor): add state=absent support to role, move to fully qualified module names, cleanup 2024-10-13 17:02:35 +02:00
README.md feat(cadvisor): add ansible role for deployment using docker containers 2022-04-02 15:36:04 +02:00

finallycoffee.observability.cadvisor ansible role

Overview

Deploys cadvisor, a daemon for collecting and exporting information about running (docker) containers in a docker container.

Configuration

In order to scrape /metrics of running containers, it is recommended to expose the default port of cadvisor to the host using

cadvisor_container_ports:
  - "127.0.0.1:8080:8080`

so that cadvisor metrics are exposed at http://127.0.0.1:8080/metrics.

Enabling/Disabling collection of metrics

By setting cadvisor_disabled_metrics, the collection of metrics can be disabled. The default list of disabled metrics is quite extensive, so when enabling a disabled-by-default metric, it is recommended to use cadvisor_force_enable_metrics instead, as it's empty by default.