{"id":37127129,"url":"https://github.com/borisputerka-zz/github_billing_exporter","last_synced_at":"2026-01-14T14:48:18.968Z","repository":{"id":44628376,"uuid":"324069270","full_name":"borisputerka-zz/github_billing_exporter","owner":"borisputerka-zz","description":"Billing exporter for GitHub organizations","archived":false,"fork":false,"pushed_at":"2022-08-31T15:47:28.000Z","size":63,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-19T16:47:21.059Z","etag":null,"topics":["billing","github","metrics","monitoring","prometheus","prometheus-exporter","prometheus-metrics"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borisputerka-zz.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":"2020-12-24T04:58:35.000Z","updated_at":"2024-06-19T16:47:21.061Z","dependencies_parsed_at":"2022-09-10T14:01:55.055Z","dependency_job_id":null,"html_url":"https://github.com/borisputerka-zz/github_billing_exporter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/borisputerka-zz/github_billing_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisputerka-zz%2Fgithub_billing_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisputerka-zz%2Fgithub_billing_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisputerka-zz%2Fgithub_billing_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisputerka-zz%2Fgithub_billing_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borisputerka-zz","download_url":"https://codeload.github.com/borisputerka-zz/github_billing_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borisputerka-zz%2Fgithub_billing_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["billing","github","metrics","monitoring","prometheus","prometheus-exporter","prometheus-metrics"],"created_at":"2026-01-14T14:48:18.244Z","updated_at":"2026-01-14T14:48:18.961Z","avatar_url":"https://github.com/borisputerka-zz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub billing exporter\n\n[![GitHub Release](https://img.shields.io/github/release/borisputerka/github_billing_exporter.svg?style=flat)](https://github.com/borisputerka/github_billing_exporter/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/borisputerka/github_billing_exporter)](https://goreportcard.com/report/github.com/borisputerka/github_billing_exporter)\n\nThis expoter exposes [Prometheus](https://prometheus.io/) metrics from GitHub billing API [endpoint](https://docs.github.com/en/free-pro-team@latest/rest/reference/billing).\n\n## Building and running\n\n## Token privileges\n\nToken needs to have access to read billing data.\n\n### Build\n\n    make\n\n### Running\n\nRunning using an environment variable:\n\n    export GITHUB_ORGS=\"ORG1,ORG2,...\"\n    export GITHUB_TOKEN=\"example_token\"\n    ./github_billing_exporter\n\nRunning using args:\n\n    ./github_billing_exporter \\\n    --github-orgs=\"ORG1,ORG2,...\" \\\n    --github-token=\"example_token\"\n\n## Collectors\n\nThere are three collectors (`actions`, `packages` and `storage`) all enabled by default. Disabling collector(s) can be done using arg `--no-collector.\u003cname\u003e`.\n\n### List of collectors\n\nName\t | Description\t\t\t\t\t\t\t\t\t | Enabled\n---------|-------------------------------------------------------------------------------|--------\nactions  | Exposes billing statistics from `/orgs/{org}/settings/billing/actions`\t | `true`\npackages | Exposes billing statistics from `/orgs/{org}/settings/billing/packages`\t | `true`\nstorage  | Exposes billing statistics from `/orgs/{org}/settings/billing/shared-storage` | `true`\n\n## Environment variables / args reference\n\nVersion    | Env\t\t   | Arg\t\t     | Description\t\t\t\t  | Default\n-----------|-----------------------|-------------------------|--------------------------------------------|---------\n=`0.1.0`   | `DISABLED_COLLECTORS` | `--disabled-collectors` | Collectors to disable\t\t\t  | `\"\"`\n\\\u003e=`0.1.0` | `GITHUB_ORGS`\t   | `--github-orgs`\t     | GitHub organizations to scrape metrics for | `\"\"`\n\\\u003e=`0.1.0` | `GITHUB_TOKEN`        | `--github-token`\t     | GitHub token with billind read privileges  | `\"\"`\n\\\u003e=`0.1.0` | `LISTEN_ADDRESS`      | `--web.listen-address`  | Address on which to expose metrics.        | `:9776`\n\\\u003e=`0.1.0` | `METRICS_PATH`\t   | `--web.telemetry-path`  | Path under which to expose metrics.        | `/metrics`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisputerka-zz%2Fgithub_billing_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborisputerka-zz%2Fgithub_billing_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborisputerka-zz%2Fgithub_billing_exporter/lists"}