From 0a17e59925cd90897ce7d1e8a46dad5f05556045 Mon Sep 17 00:00:00 2001 From: Emma Foley Date: Thu, 10 Jun 2021 12:08:12 +0100 Subject: [ansible] Add unixsock to config_files role The unixsock plugin is useful for debugging issues in collectd, and can be used to verify that metrics are being collected without having to create CSV files or log into the container. Typically, the unixsock plugin can be queried using the following syntax:: $ docker exec bar-collectd /opt/collectd/bin/collectdctl -s /var/run/collectd-socket listval Signed-off-by: Emma Foley Change-Id: Id342fe7659c809f4eec71085ae6572f9d855684c --- docker/ansible/roles/config_files/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docker/ansible/roles/config_files/tasks') diff --git a/docker/ansible/roles/config_files/tasks/main.yml b/docker/ansible/roles/config_files/tasks/main.yml index eab356d9..9b241890 100644 --- a/docker/ansible/roles/config_files/tasks/main.yml +++ b/docker/ansible/roles/config_files/tasks/main.yml @@ -92,6 +92,12 @@ - name: enable ipmi plugin include: ipmi.yml +- name: Enable unixsock plugin + set_fact: + collectd_plugins: "{{ collectd_plugins | union(['unixsock']) | unique }}" + tags: + - unixsock + - name: enable uuid plugin include: uuid.yml -- cgit 1.2.3-korg