A recent change (
00d420e80) removed the `output` function, which textfile.lua was
using to output metrics. So use the underlying output handle instead
Signed-off-by: Rob Hoelz <[email protected]>
include $(TOPDIR)/rules.mk
PKG_NAME:=prometheus-node-exporter-lua
-PKG_VERSION:=2025.06.29
+PKG_VERSION:=2025.07.15
PKG_RELEASE:=1
local mtime_metric = metric("node_textfile_mtime_seconds", "gauge")
for metrics in fs.glob("/var/prometheus/*.prom") do
- output(get_contents(metrics), '\n')
+ out:write(get_contents(metrics))
+ out:write('\n')
local stat = fs.stat(metrics)
if stat then
mtime_metric({ file = metrics }, stat.mtime)