forked from cloudalchemy/ansible-node-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
43 lines (33 loc) · 1.63 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
otus_node_exporter_version: 0.17.0
otus_node_exporter_web_listen_address: "0.0.0.0:9100"
otus_node_exporter_archive_path: "https://github.com/prometheus/node_exporter/releases/download/v{{ otus_node_exporter_version }}/node_exporter-{{ otus_node_exporter_version }}.linux-{{ go_arch }}.tar.gz" # yamllint disable-line
otus_node_exporter_user_configuration:
username: prometheus-node-exporter
group: prometheus
system: true
shell: /usr/bin/nologin
home: /usr/lib/prometheus/exporters/node
##note: in prometheus home directory will be unpacked distro,
# unpacked logic works only when directory does not exist, but user must exist so:
# - create user and define home, without creating home directory
# - unpack distro and create home directory
# also if need to install in other directory there is an opportunity to define another root_path and path
create_home: false
otus_node_exporter_path: "{{ otus_node_exporter_user_configuration.home }}"
otus_node_exporter_path_mode: "0755"
otus_node_exporter_bin_dir: /usr/bin
otus_node_exporter_service_dir: /lib/systemd/system
otus_node_exporter_service_name: prometheus_exporter_node
otus_node_exporter_system_group: "prometheus"
otus_node_exporter_system_user: "{{ otus_node_exporter_system_group }}"
otus_node_exporter_install_method: tar
otus_node_exporter_textfile_dir: "/var/lib/otus_node_exporter"
otus_node_exporter_enabled_collectors:
- systemd
- textfile:
directory: "{{ otus_node_exporter_textfile_dir }}"
# - filesystem:
# ignored-mount-points: "^/(sys|proc|dev)($|/)"
# ignored-fs-types: "^(sys|proc|auto)fs$"
otus_node_exporter_disabled_collectors: []