prometheus-node-exporter-lua: Add optional mwan3 collector
authorRyan Doyle <ryan@doylenet.net>
Mon, 20 Feb 2023 08:46:15 +0000 (19:46 +1100)
committerEtienne Champetier <champetier.etienne@gmail.com>
Sun, 16 Jun 2024 03:33:57 +0000 (23:33 -0400)
commitc279efb760ca516db7cdaee32216344df47f2203
treeb65636c3355d0ea8ecb8cd7cbe0cb6071957fd8c
parent4edae8449946f46bbb3943eb0af066048ef37c54
prometheus-node-exporter-lua: Add optional mwan3 collector

Supports interface metrics exposed by mwan3. The performance is a
little slow compared to other collectors (~300ms) as the ubus call is
where most of the time is spent. Any future speedups are likely better
put into mwan3's rpcd binary.

Signed-off-by: Ryan Doyle <ryan@doylenet.net>
[rename metrics,bump version]
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/mwan3.lua [new file with mode: 0644]