Prometheus metrics exporter for github actions self-hosted runners.
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) |
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
Import the grafana dashboard file grafana/dashboard.json