2024-02-03 22:00:12 +00:00
2023-08-17 00:34:12 +02:00
2024-02-03 22:00:12 +00:00
2023-08-19 15:45:03 +02:00
2023-10-02 18:38:24 +00:00

Github Latest Release Exporter

This is a simple service that fetches the latest version of software from github and exposes it as a metric for Prometheus to scrape. Just query the endpoint with ```owner/repository``, and you will get a metric back.

Development and local testing

docker buildx build -t latest_release_exporter .
docker run --name latest_release_exporter -d -p 8000:8000 -e GITHUB_TOKEN=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 latest_release_exporter
curl http://localhost:8000/metrics?repo=prometheus/prometheus

docker stop latest_release_exporter
docker rm latest_release_exporter
Description
No description provided
Readme 140 KiB
Languages
Python 90.6%
Dockerfile 6.8%
Shell 2.6%