Prometheus Exporter for CircleCI Insight API
$ go run main.go
Get the binary file from Releases and run it.
$ docker run chaspy/circleci-insights-prometheus-exporter:v0.3.0
- circleci_custom_workflow_insights_total_runs
- circleci_custom_workflow_insights_successful_runs
- circleci_custom_workflow_insights_failed_runs
- circleci_custom_workflow_insights_success_rate
- circleci_custom_workflow_insights_throughput
- circleci_custom_workflow_insights_duration_metrics_min
- circleci_custom_workflow_insights_duration_metrics_max
- circleci_custom_workflow_insights_duration_metrics_median
- circleci_custom_workflow_insights_duration_metrics_p95
- circleci_custom_workflow_insights_duration_metrics_standard_deviation
These metrics are from getProjectWorkflowRuns API
These metrics have "workflow", "repo" and "branch" tags.
- circleci_custom_job_insights_success_rate
- circleci_custom_job_insights_duration_metrics_min
- circleci_custom_job_insights_duration_metrics_max
- circleci_custom_job_insights_duration_metrics_median
- circleci_custom_job_insights_duration_metrics_p95
- circleci_custom_job_insights_duration_metrics_standard_deviation
These metrics are from getProjectWorkflowJobMetrics
These metrics have "job", "workflow", "repo" and "branch" tags.
name | required | default | description |
---|---|---|---|
CIRCLECI_TOKEN | yes | - | CircleCI API Token |
CIRCLECI_API_INTERVAL | no | 300(sec) | Interval second for calling the API |
GITHUB_REPOSITORY | yes | - | Comma-separated repository names. i.e. "chaspy/chaspy.me,chaspy/dotfiles" |
GITHUB_BRANCH | yes | - | Comma-separated branch names. i.e. "master,develop" |
If you use Datadog, you can use Kubernetes Integration Autodiscovery feature.