You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
203 B

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