Skip to content

Prometheus exporter metrics for github organization level self-hosted runners

License

Notifications You must be signed in to change notification settings

jonathan-duval/github-org-runner-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
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 ornanization 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

Packages

No packages published

Languages

  • Python 77.1%
  • Mustache 20.8%
  • Dockerfile 2.1%