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>
Tue, 18 Jun 2024 22:28:11 +0000 (18:28 -0400)
commitd25180284d1dc5b40b8977ca0fc76ad2c90a83ac
treee10ff115b67c3c55ae462b95e1b4e12f403936b4
parent87a831fa8e60e24db2d53973d1b38ca1f0e48dd1
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>
(cherry picked from commit c279efb760ca516db7cdaee32216344df47f2203)
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/mwan3.lua [new file with mode: 0644]