command
module
Version:
v0.0.0-...-f6933f2
Opens a new window with list of versions in this module.
Published: Apr 23, 2021
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.