Commit graph

7 commits

Author SHA1 Message Date
Etienne Champetier
60460f0046 prometheus-node-exporter-lua: use uhttpd-mod-lua
listen_ipv6 config option is removed and we now
listen on both ipv4 and ipv6 addresses.
HTTP keepalive is enabled and set to 70s by default.

With uhttpd-mod-lua there is a small change in behavior,
all code is loaded/parsed/executed once on startup as before,
but now each request is executed in his own fork, so we can't
keep a state between requests.

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2022-04-25 12:22:22 -04:00
Rosen Penev
3aa009478a
prometheus-node-exporter-lua: fixed small warning
This happens during compilation:

Enabling network
./etc/init.d/prometheus-node-exporter-lua: line 7: /lib/functions/network.sh: No such file or directory

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-01-27 18:55:31 -08:00
Andre Heider
a3af4c3691 prometheus-node-exporter-lua: respawn the process
Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-11-17 18:16:48 -08:00
Andre Heider
d8e637d064 prometheus-node-exporter-lua: add a config reload trigger
Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-11-17 18:16:48 -08:00
Andre Heider
48568ad9f9 prometheus-node-exporter-lua: switch config to openwrt interface names
Drop the config knob 'listen_address' and introduce 'listen_interface'
and 'listen_ipv6' instead.

'listen_interface' takes an openwrt interface name ('loopback', 'lan',
'wan' etc, or "*" for all), from which the primary IP is used to listen
on. If 'listen_ipv6' is set to '1', the IPv6 adress will be used, IPv4
elsewise.

procd interface triggers are now combined with this, so if the listen
interface is not yet configured when the init script is executed, the
process start is defered, and the trigger takes care of that once
the interface is ready.

Fixes 

Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-11-17 18:16:48 -08:00
Etienne Champetier
4e94edce51 prometheus-node-exporter-lua: send stdout/stderr to logread
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-12-08 21:22:16 -08:00
Christian Simon
d27d9e566a prometheus-node-exporter-lua: adds node metrics exporter
Signed-off-by: Christian Simon <simon@swine.de>
2017-05-08 14:27:43 +01:00