copr-be: enable systemd metrics in node exporter

This commit is contained in:
Silvie Chlupová 2021-11-29 14:42:51 +01:00
parent c1cb8fdefe
commit 0cbe1212a8

View file

@ -162,6 +162,13 @@
- name: start node exporter
service: state=started enabled=yes name=node_exporter
- name: configure options in node exporter
lineinfile:
path: /etc/sysconfig/node_exporter
regexp: '^OPTIONS='
line: 'OPTIONS=--collector.textfile.directory /var/lib/node_exporter/textfile_collector --collector.systemd'
notify: restart node_exporter
# setup dirs for the ansible execution off of provisioning
#- name: dirs from provision
# file: state=directory path="/home/copr/provision/{{ item }}" owner=copr group=copr