Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/louisgrasset/yggtorrent-exporter
YGG Torrent tracker prometheus-compatible metrics exporter
https://github.com/louisgrasset/yggtorrent-exporter
prometheus prometheus-exporter torrent yggtorrent
Last synced: about 1 month ago
JSON representation
YGG Torrent tracker prometheus-compatible metrics exporter
- Host: GitHub
- URL: https://github.com/louisgrasset/yggtorrent-exporter
- Owner: louisgrasset
- Created: 2024-04-13T12:45:05.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-13T14:31:25.000Z (9 months ago)
- Last Synced: 2024-10-30T23:13:00.514Z (3 months ago)
- Topics: prometheus, prometheus-exporter, torrent, yggtorrent
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YGG Torrent Exporter
Straightforward YggTorrent leeching / seeding exporter for [Prometheus](https://github.com/prometheus/prometheus).
This exporter relies on [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) to bypass the Cloudflare's
protection (often enabled on YGG). The data is refreshed every two hours.## Exposed metrics
The ratio isn't exposed as a metric since it is not publicly available. But it can be computed in your visualization
tool.| | Metric | Description |
|---|-----------------------------------|-----------------------------------------------|
| ⏬ | `yggtorrent_download_bytes_total` | Total amount of bytes leeched from YggTorrent |
| ⏫ | `yggtorrent_upload_bytes_total` | Total amount of bytes sent to YggTorrent |## Getting started
Simply run the exporter by creating its container.
You'll have to pass the following environment variables:| Variable | Description |
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| `YGG_PROFILE_URL` | Your profile URL. (find it by posting a comment under a torrent) (eg. `https://sub.domain.tld/profile/xxxxxx-xxxxx`) |
| `FLARESOLVERR_URL` | The [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) URL (eg. `http://flaresolverr:8191` or `http://sub.domain.tld`) |