@ -12,15 +12,18 @@ PKG_LICENSE:=Apache-2.0
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a / D e f a u l t
SECTION:= utils
CATEGORY:= Utilities
TITLE:= Provides system statistics as Prometheus scraping endpoint
DEPENDS:= +luasocket +libiwinfo-lua +libubus-lua +lua
URL:= https://github.com/rbo/openwrt_exporter
TITLE:= Prometheus node exporter
PKGARCH:= all
e n d e f
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a
$( call Package/prometheus-node-exporter-lua/Default)
DEPENDS:= +luasocket +lua
e n d e f
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a / c o n f f i l e s
/ e t c / c o n f i g / p r o m e t h e u s - n o d e - e x p o r t e r - l u a
e n d e f
@ -31,6 +34,18 @@ define Package/prometheus-node-exporter-lua/description
This service is a lightweight rewrite in LUA of the offical Prometheus node_exporter.
e n d e f
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a - w i f i
$( call Package/prometheus-node-exporter-lua/Default)
TITLE += ( wifi collector)
DEPENDS:= prometheus-node-exporter-lua +libiwinfo-lua +libubus-lua
e n d e f
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a - w i f i _ s t a t i o n s
$( call Package/prometheus-node-exporter-lua/Default)
TITLE += ( wifi_stations collector)
DEPENDS:= prometheus-node-exporter-lua +libiwinfo-lua +libubus-lua
e n d e f
B u i l d / Compile =
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a / i n s t a l l
@ -41,7 +56,27 @@ define Package/prometheus-node-exporter-lua/install
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) ./files/usr/bin/prometheus-node-exporter-lua $( 1) /usr/bin/prometheus-node-exporter-lua
$( INSTALL_DIR) $( 1) /usr/lib/lua/prometheus-collectors
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/* $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/cpu.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/filefd.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/loadavg.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/meminfo.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/nat_traffic.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/netstat.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/netdev.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/time.lua $( 1) /usr/lib/lua/prometheus-collectors/
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/uname.lua $( 1) /usr/lib/lua/prometheus-collectors/
e n d e f
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a - w i f i / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/lua/prometheus-collectors
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/wifi.lua $( 1) /usr/lib/lua/prometheus-collectors/
e n d e f
d e f i n e P a c k a g e / p r o m e t h e u s - n o d e - e x p o r t e r - l u a - w i f i _ s t a t i o n s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/lua/prometheus-collectors
$( INSTALL_BIN) ./files/usr/lib/lua/prometheus-collectors/wifi_stations.lua $( 1) /usr/lib/lua/prometheus-collectors/
e n d e f
$( eval $ ( call BuildPackage ,prometheus -node -exporter -lua ) )
$( eval $ ( call BuildPackage ,prometheus -node -exporter -lua -wifi ) )
$( eval $ ( call BuildPackage ,prometheus -node -exporter -lua -wifi_stations ) )