squeegee

command module
v0.0.0-...-f6933f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 10 Imported by: 0

README

Squeegee: so I scrape when you scrape (prometheus)

This is a simple tool to:

  • Scrape JSON endpoints according to (get excited) a YAML syntax
  • Parse them with jsonquery
  • Shove them into a prometheus gauge
  • Serve that over port 8000

That's it, folks.

Syntax

The syntax is simple, here's a complete example:

---
metrics:
  watchers_count:
    url: https://api.github.com/repos/erikh/tftest
    headers:
      Authorization: "bearer <token>"
    query: /watchers_count
    interval: 1s

This will poll the watchers count for erikh/tftest and expose it as a prometheus metric called watchers_count for the scraped host.

License

MIT

Author

Erik Hollensbe github@hollensbe.org

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL