circleci-exporter provides build metrics from CircleCI, exposing these metrics for Prometheus.
circleci_last_build_date
circleci_last_build_number
circleci_last_build_time_millis
circleci_last_build_status
project_name
branch
started_by
Below the return numbers according to the build status from circleci_last_build_status
| status | number |
|---|---|
| retried | 12 |
| canceled | 11 |
| infrastructure_fail | 10 |
| timedout | 9 |
| not_run | 8 |
| running | 7 |
| queued | 6 |
| scheduled | 5 |
| not_running | 4 |
| no_tests | 3 |
| fixed | 2 |
| failed | 1 |
| success | 0 |
CIRCLE_TOKEN (needed)
CIRCLE_PROJECTS
CIRCLE_USERNAME
$ docker build . -t vivareal/circleci-exporter
You will need K8S_TOKEN and K8S_ENDPOINT to access the api-server
$ export CIRCLE_TOKEN=1ca308df6cdb0a8bf40d59be2a17eac1
$ docker run -p 5000:5000 -e "CIRCLE_TOKEN=${CIRCLE_TOKEN}" vivareal/circleci-exporter
Set you target k8s context and apply the deployment files
$ kubectl apply -f deploy/
Content type
Image
Digest
Size
24.8 MB
Last updated
over 4 years ago
docker pull t3nde/circleci-exporter:1.0.1