An open API service indexing awesome lists of open source software.

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

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