Description
GitHub Exporter is a Prometheus exporter for GitHub metrics. It exposes basic metrics for your repositories, pulled from the GitHub API, at a Prometheus-compatible endpoint. The exporter is configured through environment variables. ORGS, REPOS and USERS choose which organizations, repositories and users to monitor, and GITHUB_TOKEN or GITHUB_TOKEN_FILE supply a personal access token. You can instead authenticate as a GitHub App by setting GITHUB_APP to true and providing the app ID, installation ID and private key path. Rate limit metrics are optional and enabled by default, and a threshold setting can refresh GitHub App tokens before the core quota runs out. Other settings control how many results are requested per page, which is up to 100, and whether release metrics are fetched. The README includes Docker Compose examples, including one for a GitHub App deployment, and a section explaining how credentials are chosen when more than one is set.…
Highlights
- Prometheus endpoint for GitHub repository metrics
- Monitor organizations, repositories and users
- Personal token or GitHub App authentication
- Optional rate limit metrics
- Docker Compose examples
Ratings & Reviews
No ratings yet
Be the first to rate Github Exporter.
People also visit
Github Exporter FAQ
What does GitHub Exporter export?
Basic metrics for the repositories you choose, from the GitHub API, in a format Prometheus can scrape.
How is it configured?
With environment variables. ORGS, REPOS and USERS select what to monitor, and GITHUB_TOKEN supplies a personal access token.
Can I use a GitHub App instead of a token?
Yes. Set GITHUB_APP to true and provide GITHUB_APP_ID, GITHUB_APP_INSTALLATION_ID and GITHUB_APP_KEY_PATH.
Does it report rate limits?
Yes, optionally. GITHUB_RATE_LIMIT_ENABLED is true by default.
How do I deploy it?
The README has Docker Compose examples, including one for a GitHub App.
What are the best Github Exporter alternatives?
Popular alternatives to Github Exporter include Nextcloud Exporter, Github Repo Stats and Promster. See all Github Exporter alternatives