/github-actions-exporter

github-actions-exporter for prometheus

Primary LanguageGoMIT LicenseMIT

github-actions-exporter

github-actions-exporter for prometheus

Options

Name Flag Env vars Default Description
Github Token github_token, gt GITHUB_TOKEN - Personnal Access Token
Github Refresh github_refresh, gr GITHUB_REFRESH 30 Refresh time Github Actions status in sec
Github Repos github_repos, grs GIHUB_REPOS - List all repositories you want get informations. Format <orga>/<repo>,<orga>/<repo2>,<orga>/<repo3> (like test/test)
Exporter port port, p PORT 9999 Exporter port

Exported stats

github_job

Gauge type

Result possibility

ID Description
0 Failure
1 Success
2 Skipped
3 In Progress

Fields

Name Description
event Event type like push/pull_request/...
head_branch Branch name
head_sha Commit ID
node_id Node ID (github actions) (mandatory ??)
repo Repository like <org>/<repo>
run_number Build id for the repo (incremental id => 1/2/3/4/...)
status Workflow status (completed/in_progress)

github_runner_status

Gauge type (If you have self hosted runner)

Result possibility

ID Description
0 Offline
1 Online

Fields

Name Description
id Runner id (incremental id)
name Runner name
os Operating system (linux/macos/windows)
repo Repository like <org>/<repo>
status Runner status (online/offline)