accesspoints: add wifi clients metrics into prometheus

`wifi_network_clients` exposes the amount of connected wifi clients
replace_gw-core01
Gregor Michels 2022-07-25 02:26:54 +02:00
parent ba014a64d0
commit 90e231d371
1 changed files with 12 additions and 2 deletions

View File

@ -32,10 +32,20 @@
notify:
- restart prometheus-node-exporter-lua
- name: install prometheus-node-exporter-lua-wifi
- name: uninstall vanilla prometheus-node-exporter-lua-wifi
opkg:
name: prometheus-node-exporter-lua-wifi
update_cache: yes
state: absent
notify:
- restart prometheus-node-exporter-lua
- name: install custom prometheus-node-exporter-lua-wifi
copy:
src: files/wifi.lua
dest: /usr/lib/lua/prometheus-collectors/wifi.lua
owner: root
group: root
mode: 0755
notify:
- restart prometheus-node-exporter-lua