Commit 937d4ef
committed
packages: prometheus...-wifi-stations-extra: use babeld if available
This collector currently doesn't work with profile-libremesh-suggested-packages-tiny
due to the lack of shared-state-bat_hosts (since this is based on shared-state-async
which is too big for 8/64 devices)
This commit allows the collector to print hostnames taking the info from /etc/babeld-hosts
It also introduces a check to verify the existence of /tmp/dhcp.leases,
this in case of a setup without anygw or another dhcp server.1 parent 5cb70b3 commit 937d4ef
1 file changed
Lines changed: 22 additions & 6 deletions
File tree
- packages/prometheus-node-exporter-lua-wifi-stations-extra/files/usr/lib/lua/prometheus-collectors
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
10 | 22 | | |
| 23 | + | |
11 | 24 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
15 | 31 | | |
16 | 32 | | |
17 | 33 | | |
| |||
0 commit comments