https://github.com/erikh/squeegee
Scrape URLs, parse them and expose them as prometheus metrics
https://github.com/erikh/squeegee
Last synced: about 1 year ago
JSON representation
Scrape URLs, parse them and expose them as prometheus metrics
- Host: GitHub
- URL: https://github.com/erikh/squeegee
- Owner: erikh
- License: mit
- Created: 2021-04-23T09:46:10.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-23T09:48:22.000Z (about 5 years ago)
- Last Synced: 2023-03-23T08:14:38.774Z (about 3 years ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/antchfx/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:
```yaml
---
metrics:
watchers_count:
url: https://api.github.com/repos/erikh/tftest
headers:
Authorization: "bearer "
query: /watchers_count
interval: 1s
```
This will poll the watchers count for [erikh/tftest](https://github.com/erikh/tftest) and expose it as a prometheus metric called `watchers_count` for the scraped host.
## License
MIT
## Author
Erik Hollensbe