{"id":16474308,"url":"https://github.com/cpanato/github_actions_exporter","last_synced_at":"2025-09-02T19:47:36.374Z","repository":{"id":37931345,"uuid":"315318424","full_name":"cpanato/github_actions_exporter","owner":"cpanato","description":"GitHub Action Exporter","archived":false,"fork":false,"pushed_at":"2025-08-13T10:33:43.000Z","size":2829,"stargazers_count":76,"open_issues_count":5,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-13T12:26:38.030Z","etag":null,"topics":["github","github-actions","go","golang","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cpanato.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2020-11-23T13:07:30.000Z","updated_at":"2025-08-13T10:33:45.000Z","dependencies_parsed_at":"2023-02-16T09:46:34.142Z","dependency_job_id":"42cb1c8b-a858-40d9-a612-fc0b78dc5120","html_url":"https://github.com/cpanato/github_actions_exporter","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/cpanato/github_actions_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpanato%2Fgithub_actions_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpanato%2Fgithub_actions_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpanato%2Fgithub_actions_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpanato%2Fgithub_actions_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpanato","download_url":"https://codeload.github.com/cpanato/github_actions_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpanato%2Fgithub_actions_exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273341430,"owners_count":25088346,"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-02T02:00:09.530Z","response_time":77,"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","github-actions","go","golang","prometheus","prometheus-exporter"],"created_at":"2024-10-11T12:30:46.135Z","updated_at":"2025-09-02T19:47:36.320Z","avatar_url":"https://github.com/cpanato.png","language":"Go","readme":"# GitHub Actions Exporter\n\nPrometheus exporter exposing [GitHub Actions](https://github.com/features/actions) metrics.\n\nRight now this exporter only expose the one metric which is the WorkFlow execution\ntime.\n\nOther metrics can be added in the future.\n\n## Getting Started\n\nThis exporter receives webhook events from GitHub.\n\nIf you want to collect metrics from a GitHub repository you will need to create a webhook\nin your GitHub repo.\n\nYou need just to select the `Check Run` event and the set your secret (that you start your exporter, see below)\n\nThe webhook will call `/gh_event` path on your endpoint by default. You can change this with the `--web.gh-webhook-path` option.\n\n![gh_webook](./assets/gh_webhook.png)\n\nAlso it collects the Action Billing metrics, for that you will need to setup a GitHub API Access Token\n\nWhen configuring for an organization Access tokens must have the `repo` or `admin:org` scope.\nWhen configuring for an user Access tokens must have the `user` scope.\n\n\n### Prerequisites\n\nTo run this project, you will need a [working Go environment](https://golang.org/doc/install).\n\n### Installing\n\n```bash\ngo get -u github.com/cpanato/github_actions_exporter\n```\n\n## Building\n\nBuild the sources with\n\n```bash\nmake build\n```\n\n## Run the binary\n\n```bash\n./github_actions_exporter --gh.github-webhook-token=\"MY_TOKEN\" --gh.github-api-token=\"Accesstoken\" --gh.github-org=\"honk_org\"\n```\n\n## Docker\n\nYou can deploy this exporter using the [ghcr.io/cpanato/github_actions_exporter-linux-amd64](https://github.com/users/cpanato/packages/container/package/github_actions_exporter-linux-amd64) Docker image.\n\nFor example:\n\n```bash\ndocker pull ghcr.io/cpanato/github_actions_exporter-linux-amd64:v0.2.0\ndocker run -d -p 9101:9101 ghcr.io/cpanato/github_actions_exporter-linux-amd64:v0.2.0 --gh.github-webhook-token=\"1234567890token\" --gh.github-api-token=\"Accesstoken\" --gh.github-org=\"honk_org\"\n```\n\n## Testing\n\n### Running unit tests\n\n```bash\nmake test\n```\n\n### Manual testing\n\n```bash\ncd example/\nexport GITHUB_WEBHOOK_TOKEN=\"...\"\nexport GITHUB_API_TOKEN=\"...\"\nexport GITHUB_ORG=\"...\"\ndocker-compose up --build\n```\n\nOpen Prometheus at http://localhost:9090 and explore the available metrics.\n\n## Contributing\n\nRefer to [CONTRIBUTING.md](https://github.com/cpanato/github_actions_exporter/blob/master/CONTRIBUTING.md).\n\n## License\n\nApache License 2.0, see [LICENSE](https://github.com/cpanato/github_actions_exporter/blob/master/LICENSE).\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpanato%2Fgithub_actions_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpanato%2Fgithub_actions_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpanato%2Fgithub_actions_exporter/lists"}