Skip to content

Prometheus exporter metrics for github organization level self-hosted runners

License

Notifications You must be signed in to change notification settings

appchoose/github-runners-exporter

 
 

Repository files navigation

Github org runner exporter

Prometheus metrics exporter for github actions self-hosted runners.

Settings

Variable Required Description
PRIVATE_GITHUB_TOKEN Yes Github token with read org permissions
OWNER Yes Github organization name
GITHUB_REPOSITORY No Github repository name
REFRESH_INTERVAL No Internval time in seconds betwen api requests (Default: 20)
LOG_LEVEL No Log level: DEBUG, INFO, WARNING or ERROR (Default: INFO)

How to deploy

Create a secret with the private token and the organization name:

kubectl create secret generic runner-exporter --from-literal=PRIVATE_GITHUB_TOKEN=<token> --from-literal=OWNER=<org>

Add the helm repo:

helm repo add tchelovilar https://tchelovilar.github.io/github-org-runner-exporter/
helm repo update

Install the helm chart:

helm install github-runner-exporter --set envFromSecret=runner-exporter tchelovilar/prometheus-org-runner-exporter

Grafana Dashboard

Import the grafana dashboard file grafana/dashboard.json

Grafana Dashboard

About

Prometheus exporter metrics for github organization level self-hosted runners

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.5%
  • Mustache 10.4%
  • Dockerfile 1.1%