blob: 118177f49092a3e20d22b8a49cd146e632ee0fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/lua
local fs = require "nixio.fs"
local function scrape()
for metrics in fs.glob("/var/prometheus/*.prom") do
output(get_contents(metrics), '\n')
end
end
return { scrape = scrape }
|