{"id":23689779,"url":"https://github.com/josh/github_exporter","last_synced_at":"2025-08-23T01:34:30.896Z","repository":{"id":270038311,"uuid":"908802297","full_name":"josh/github_exporter","owner":"josh","description":"Prometheus exporter for GitHub metrics","archived":false,"fork":false,"pushed_at":"2025-08-04T18:28:32.000Z","size":299,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-04T20:58:36.274Z","etag":null,"topics":["github","metrics","monitoring","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/josh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-27T02:25:55.000Z","updated_at":"2025-08-04T18:28:36.000Z","dependencies_parsed_at":"2024-12-27T23:36:52.266Z","dependency_job_id":"b1f64d44-1bcc-4166-ac4c-664a38d7a260","html_url":"https://github.com/josh/github_exporter","commit_stats":null,"previous_names":["josh/github_exporter"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/josh/github_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Fgithub_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Fgithub_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Fgithub_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Fgithub_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josh","download_url":"https://codeload.github.com/josh/github_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Fgithub_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271729966,"owners_count":24811007,"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-08-22T02:00:08.480Z","response_time":65,"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":["github","metrics","monitoring","prometheus","prometheus-exporter"],"created_at":"2024-12-30T01:39:34.918Z","updated_at":"2025-08-23T01:34:30.889Z","avatar_url":"https://github.com/josh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Prometheus Exporter\n\nA Prometheus exporter that collects metrics from GitHub, including:\n\n- Issue and pull request counts\n- Notification counts\n- Workflow run states and numbers\n\n## Usage\n\nThe exporter requires a GitHub personal access token to function. Set it via the `GITHUB_TOKEN` environment variable or using the `--token` flag.\n\n### Serve Mode\n\nRun as a Prometheus metrics endpoint:\n\n```bash\ngithub_exporter serve [options]\n\nOptions:\n  -h, --host      Host address to listen on (default: \":9448\")\n  -i, --interval  Metrics collection interval (default: 15m)\n```\n\nMetrics will be available at `http://localhost:9448/metrics`\n\n### Generate Mode\n\nGenerate metrics once and exit:\n\n```bash\ngithub_exporter generate [options]\n\nOptions:\n  -o, --output      Output file path (defaults to stdout if not specified)\n  -p, --pushgateway Pushgateway URL to send metrics to\n  -r, --pushgateway-retries Number of retries for Pushgateway requests (default: 1)\n```\n\n### Environment Variables\n\nAll CLI options can be configured via environment variables:\n\n- `GITHUB_TOKEN`: GitHub personal access token (required)\n- `GITHUB_EXPORTER_VERBOSE`: Enable verbose logging\n- `GITHUB_EXPORTER_HOST`: Host address for serve mode\n- `GITHUB_EXPORTER_INTERVAL`: Collection interval for serve mode\n- `GITHUB_EXPORTER_OUTPUT`: Output file path for generate mode\n- `GITHUB_EXPORTER_PUSHGATEWAY_URL`: Pushgateway URL for generate mode\n- `GITHUB_EXPORTER_PUSHGATEWAY_RETRIES`: Number of retries for Pushgateway requests (default: 1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh%2Fgithub_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosh%2Fgithub_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh%2Fgithub_exporter/lists"}