-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode_exporter.yml
39 lines (35 loc) · 983 Bytes
/
node_exporter.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
- name: "Apply sftp configuration"
hosts: all
gather_facts: false
roles:
- gekmihesg.openwrt
tasks:
- name: Install required packages
opkg:
name: "{{ item }}"
state: present
loop:
- prometheus-node-exporter-lua
- prometheus-node-exporter-lua-nat_traffic
- prometheus-node-exporter-lua-netstat
- prometheus-node-exporter-lua-openwrt
- prometheus-node-exporter-lua-wifi
- prometheus-node-exporter-lua-wifi_stations
- name: Expose metrics
uci:
command: set
key: prometheus-node-exporter-lua.main
value:
listen_interface: "lan"
listen_ipv6: "0"
listen_port: "9100"
notify:
- Commit changes
- Restart node_exporter
handlers:
- name: Commit changes
uci:
command: commit
config: network
- name: Restart node_exporter
raw: /etc/init.d/prometheus-node-exporter-lua restart