prometheus-node-exporter-lua: expose node_os_info
authorEvgeni Golov <redacted>
Sun, 26 Apr 2026 13:22:00 +0000 (15:22 +0200)
committerEtienne Champetier <redacted>
Mon, 25 May 2026 02:46:13 +0000 (22:46 -0400)
commit7d9cc2e95aa8a1da170949b06040ec298a2487f5
tree8ae91043ef555f9ba9e1d38e42c246062dcfcba9
parentc8760b4ecfa9d2a2d4ed07f5501329f411bf36ba
prometheus-node-exporter-lua: expose node_os_info

the original node_exporter exposes a node_os_info metric with a set of
data about the system [1] which is then used by several dashboards.

openwrt.lua already exposes OS info, but using the node_openwrt_info
metric requires changes to existing dashboards, and would require more
complex lookups when there are non-OpenWrt hosts in the overview too.

as we've already called ubus and fetched the data, we can expose it in
two formats easily.

[1] https://github.com/prometheus/node_exporter/blob/d6d0e710bb7daf07a2743fde060f0d5f32c565f3/collector/os_release.go#L190-L192

Signed-off-by: Evgeni Golov <redacted>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/openwrt.lua
git clone https://git.99rst.org/PROJECT