Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.08 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.08 KB

GitHubActionsExporter

GitHubActionsExporter is Prometheus Exporter that collects GitHub Actions statistics of the specified repository.

Installation

$ kubectl apply -k manifests

Usage

$ curl -s http://github-actions-exporter:9090/metrics | grep github_actions_
# HELP github_actions_runners List how many workflow runners each repository actions
# TYPE github_actions_runners gauge
github_actions_runners{repository="kaidotdev/github-actions-exporter",status="offline"} 1
github_actions_runners{repository="kaidotdev/github-actions-exporter",status="online"} 5
# HELP github_actions_runs List how many workflow runs each repository actions
# TYPE github_actions_runs gauge
github_actions_runs{repository="kaidotdev/github-actions-exporter",status="completed"} 10
github_actions_runs{repository="kaidotdev/github-actions-exporter",status="in_progress"} 1
github_actions_runs{repository="kaidotdev/github-actions-exporter",status="queued"} 1

How to develop

skaffold dev

$ make dev

Test

$ make test

Lint

$ make lint