prometheus-node-exporter-lua: fix waiting for interface
authorEtienne Champetier <champetier.etienne@gmail.com>
Mon, 13 Jun 2022 03:03:06 +0000 (23:03 -0400)
committerEtienne Champetier <champetier.etienne@gmail.com>
Fri, 17 Jun 2022 02:31:35 +0000 (22:31 -0400)
commit27ff7f17de79592516b8f7bf7f68908ea2a21a00
tree27aaf93fd91656414d88b2012e8188151d4968f7
parent8706ce73a68aedaed342cf69b1811977ede6030f
prometheus-node-exporter-lua: fix waiting for interface

Instead of waiting for interface to be up,
wait for it to have IPs, as this is what we need.

Also do not call procd_open_instance when not ready.

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
(cherry picked from commit 1dd46bca627a876158a05be14a0c91948d037445)
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/etc/init.d/prometheus-node-exporter-lua