-thermal management (temp and cooling devices)
-uname amendment to oneline and help string
-realtek-poe
-odhcp6c
-entropy help strings
-time help string
-hwmon
-time clocksources
-watchdog
-metrics help strings
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
`puts` needs to be writable for the cli code path.
Fixes the error:
"Unable to compile ucode handler: Syntax error: Invalid assignment to
constant 'puts'"
since ucode commit
ddb06a19 "compiler: make strict mode function names constant bindings"
Signed-off-by: Andre Heider <a.heider@gmail.com>
Some properties may not be available, properly guard them.
Fixes error like:
error running collector 'wifi':
left-hand side expression is null
In this case it corresponds to a link with a signal too weak.
iwinfo phy0-mesh0 assoclist
xx:xx:xx:xx:xx:xx -89 dBm / -107 dBm (SNR 18) 90 ms ago
RX: unknown 183148 Pkts.
TX: unknown 53985 Pkts.
expected throughput: unknown
Co-authored-by: OpenWrt AI review account <openwrt-ai@hauke-m.de>
Signed-off-by: Samuele Longhi <agave@dracaena.it>
Add a nat_traffic collector for prometheus-node-exporter-ucode,
ported from the equivalent Lua collector in prometheus-node-exporter-lua.
Reads /proc/net/nf_conntrack and exports per-(src, dst) pair byte
totals (both directions summed) as node_nat_traffic gauge metrics.
Also includes a ucode-based unit test with a fixture file that can be
run locally with: ucode test/nat_traffic.uc
Signed-off-by: Ricard Nacher <ricard.nacher@midokura.com>
Some properties may not yet be available, properly guard them.
Fixes error like:
daemon.err uhttpd[2116]: error running collector 'wifi':
daemon.err uhttpd[2116]: left-hand side expression is null
Signed-off-by: Andre Heider <a.heider@gmail.com>