copr-be: enable systemd metrics in node exporter
This commit is contained in:
parent
c1cb8fdefe
commit
0cbe1212a8
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue