{"id":20219745,"url":"https://github.com/jamesread/prometheus-github-exporter-micro","last_synced_at":"2025-09-15T08:58:53.448Z","repository":{"id":67916061,"uuid":"434907638","full_name":"jamesread/prometheus-github-exporter-micro","owner":"jamesread","description":"A GitHub prometheus exporter (micro = small, simple, python)","archived":false,"fork":false,"pushed_at":"2025-05-23T11:10:51.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-15T08:58:52.053Z","etag":null,"topics":["maturity-prod","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesread.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-04T13:23:57.000Z","updated_at":"2025-05-23T11:10:18.000Z","dependencies_parsed_at":"2023-06-15T03:30:47.911Z","dependency_job_id":"b2647e11-3146-4434-9cf9-95c5bb0efee4","html_url":"https://github.com/jamesread/prometheus-github-exporter-micro","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/jamesread/prometheus-github-exporter-micro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesread%2Fprometheus-github-exporter-micro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesread%2Fprometheus-github-exporter-micro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesread%2Fprometheus-github-exporter-micro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesread%2Fprometheus-github-exporter-micro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesread","download_url":"https://codeload.github.com/jamesread/prometheus-github-exporter-micro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesread%2Fprometheus-github-exporter-micro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275232725,"owners_count":25428226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["maturity-prod","prometheus","prometheus-exporter"],"created_at":"2024-11-14T06:43:41.045Z","updated_at":"2025-09-15T08:58:53.440Z","avatar_url":"https://github.com/jamesread.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus-github-exporter (micro edition)\n\nThis is a GitHub exporter that exports basic metrics from GitHub.\n\n[![Maturity Badge](https://img.shields.io/badge/maturity-Production-brightgreen)](#none)\n[![Discord](https://img.shields.io/discord/846737624960860180?label=Discord%20Server)](https://discord.gg/jhYWWpNJ3v)\n\nI wrote this because infinityworks/github-exporter looks to be semi-abandoned - several PRs being ignored, etc. If that project picks up again it may no longer make sense to maintain this exporter.\n\n\n## Sample output\n\n\n```ini\ngithub_repo_stars{repo=\"olivetin/olivetin\"} 303.0\ngithub_repo_stars{repo=\"jamesread/prometheus-gmail-exporter\"} 13.0\n# HELP github_repo_issues GitHub Repo issues\n# TYPE github_repo_issues gauge\ngithub_repo_issues{repo=\"olivetin/olivetin\"} 10.0\ngithub_repo_issues{repo=\"jamesread/prometheus-gmail-exporter\"} 0.0\n# HELP github_repo_forks GitHub Repo forks\n# TYPE github_repo_forks gauge\ngithub_repo_forks{repo=\"olivetin/olivetin\"} 11.0\ngithub_repo_forks{repo=\"jamesread/prometheus-gmail-exporter\"} 4.0\n# HELP github_repo_subscribers GitHub Repo subscribers\n# TYPE github_repo_subscribers gauge\ngithub_repo_subscribers{repo=\"olivetin/olivetin\"} 8.0\ngithub_repo_subscribers{repo=\"jamesread/prometheus-gmail-exporter\"} 3.0\n```\n\n## Installation / Usage\n\n### Option 1) Docker image\n\nPublished on dockerhub as `docker.io/jamesread/prometheus-github-exporter-micro`.\n\nExample usage;\n\n```\ndocker create --name gh_exporter -p 9171 -e REPOS=\"olivetin/olivetin,upsilonproject/upsilon-drone,upsilonproject/upsilon-custodian\" jamesread/prometheus-github-exporter-micro\n```\n\n\n### Option 2) Clone this repo and run the script.\n\n^^ :-)\n\n## Configuration\n\nConfiguration is from environment variables only.\n\n* `REPOS` - a comma-delimited list of repos you want to get metrics for. eg: `export REPOS=\"olivetin/olivetin,jamesread/prometheus-gmail-exporter\"\n* `USERS` - a comma-delimited list of users you want to get metrics for (iterate over all repos). eg: `export USERS=\"jamesread\"`\n* `PROM_PORT` - The port for the HTTP server to listen on, by default it is `9171`.\n* `GITHUB_TOKEN` - A 32-character GitHub API token, otherwise requests to the API as a guest are likely to be rate limited quickly.\n* `UPDATE_DELAY_SECONDS` - How long to sleep between updating all repos. Default `3600` seconds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesread%2Fprometheus-github-exporter-micro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesread%2Fprometheus-github-exporter-micro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesread%2Fprometheus-github-exporter-micro/lists"}