{"id":44493698,"url":"https://github.com/konradasb/github_exporter","last_synced_at":"2026-02-13T04:58:03.684Z","repository":{"id":44547938,"uuid":"455519002","full_name":"konradasb/github_exporter","owner":"konradasb","description":"Github exporter for Prometheus metrics. Written in Go, with love ❤️","archived":false,"fork":false,"pushed_at":"2022-02-08T21:22:11.000Z","size":99,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T00:27:47.715Z","etag":null,"topics":["github","metrics","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/konradasb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-04T11:15:35.000Z","updated_at":"2024-06-20T00:27:47.716Z","dependencies_parsed_at":"2022-09-05T17:10:27.738Z","dependency_job_id":null,"html_url":"https://github.com/konradasb/github_exporter","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/konradasb/github_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradasb%2Fgithub_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradasb%2Fgithub_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradasb%2Fgithub_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradasb%2Fgithub_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konradasb","download_url":"https://codeload.github.com/konradasb/github_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konradasb%2Fgithub_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29396847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T04:26:15.637Z","status":"ssl_error","status_checked_at":"2026-02-13T04:16:29.732Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","metrics","prometheus","prometheus-exporter"],"created_at":"2026-02-13T04:58:01.935Z","updated_at":"2026-02-13T04:58:03.679Z","avatar_url":"https://github.com/konradasb.png","language":"Go","readme":"\n# Github exporter for Prometheus\n\n[![main](https://github.com/konradasb/github_exporter/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/konradasb/github_exporter/actions/workflows/main.yml)\n\nThis is a Github exporter for Prometheus metrics exposed by Github API. Written in Go with pluggable metrics collectors.\n\n## Status\n\nProject is highly development, only a limited amount of collectors are implemented, starting from the ones that are needed the most at the time.\n\n## Features\n\n* Pluggable collectors, easy to integrate\n* Rate limit implementation as recommended by [Github](https://docs.github.com/en/rest/guides/best-practices-for-integrators#dealing-with-rate-limits):\n  * Response caching / Response revalidation\n  * Conditional requests\n  * Burst safeguards\n  * Throttling\n\n## Usage\n\nFor more detailed usage instructions and flags, check out the help (`--help`) flag.\n\n```bash\nexport GH_PRIVATE_KEY=\"\"\nexport GH_APP_ID=\"\"\nexport GH_INS_ID=\"\"\n\n./github_exporter --help\nPrometheus exporter for Github metrics.\nWritten in Go, with love ❤️\n\nUsage:\n  exporter [flags]\n\nFlags:\n      --host string                Host on which to expose metrics (HOST) (default \"0.0.0.0\")\n      --port string                Port on which to expose metrics (PORT) (default \"9042\")\n      --log-level string           Output log level severity (LOG_LEVEL) (default \"debug\")\n      --web-metrics-path string    Path to HTTP metrics (WEB_METRICS_PATH) (default \"/metrics\")\n      --web-healthz-path string    Path to HTTP healthz (WEB_HEALTHZ_PATH) (default \"/healthz\")\n      --web-version-path string    Path to HTTP version (WEB_VERSION_PATH) (default \"/version\")\n      --gh-organizations strings   List of Github organizations to scrape (GH_ORGANIZATIONS)\n      --gh-repositories strings    List of Github repositories to scrape (GH_REPOSITORIES)\n      --gh-private-key string      Github App Private Key (required) (GH_PRIVATE_KEY)\n      --gh-app-id int              Github App application ID (required) (GH_APP_ID)\n      --gh-ins-id int              Github App instalation ID (required) (GH_INS_ID)\n  -h, --help                       help for exporter\n  -v, --version                    version for exporter\n```\n\n## Usage (Docker)\n\nYou can run this exporter using a Docker image as well. Example:\n\n```bash\ndocker pull konradasb/github_exporter\ndocker run -d -p 9024:9024 \\\n  -e GH_PRIVATE_KEY=\"\" \\\n  -e GH_APP_ID=\"\" \\\n  -e GH_INS_ID=\"\" \\\n  konradasb/github_exporter [\u003cflags\u003e]\n```\n\n## Environment variables\n\nThese environment variables (or their `--flag` counterparts) are required:\n\n* GH_PRIVATE_KEY\n* GH_APP_ID\n* GH_INS_ID\n\nFor more information on Github App(s) see [here](https://docs.github.com/en/developers/apps/building-github-apps)\n\n## Configuration\n\nExample Prometheus scrape job configuration:\n\n```yaml\nscrape_configs:\n  - job_name: github_exporter\n    scrape_interval: 60s\n    scrape_timeout: 30s\n    static_configs:\n      - targets:\n        - 127.0.0.1:9024\n```\n\nAdjust `scrape_interval` and `scrape_timeout` as needed. It might not be the right values depending on configuration - count of organizations, repositories, cache expiration times and etc.\n\n## Collectors\n\nList of collectors, descriptions and wether they are enabled by default\n\n  Name    |             Description              | Enabled\n----------|--------------------------------------|----------\nactions   | collector for Github Actions service | true\nratelimit | collector for Github ratelimits      | true\n\n## Development\n\nPrerequisites:\n\n* Go \u003e= 1.17\n\nBuilding:\n\n```bash\ngit clone https://github.com/konradasb/github_exporter.git\ncd github_exporter\nmake build\n./github_exporter --help\n```\n\n## Contributing\n\nPull requests are always welcome. For any major changes, open an issue discussing the changes first before opening a pull request.\n\nUpdate tests as appropriate.\n\n## License\n\n[License - MIT](https://choosealicense.com/licenses/mit/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonradasb%2Fgithub_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonradasb%2Fgithub_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonradasb%2Fgithub_exporter/lists"}