Skip to content
This repository was archived by the owner on Aug 28, 2022. It is now read-only.

krorvik/github-actions-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 GITHUB_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
repo Repository like <org>/<repo>
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)

About

github-actions-exporter for prometheus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 84.7%
  • Shell 9.0%
  • Makefile 4.9%
  • Dockerfile 1.4%