Monitor CircleCI queue and save it as Datadog metrics
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
vendor
.gitignore
CHANGELOG.md
Dockerfile
Gopkg.lock
Gopkg.toml
LICENSE
README.md
dashboard.png
job_count.go
job_count_test.go
main.go
version.go

README.md

circleci-queue-to-datadog

Monitor CircleCI queue and save it as Datadog metrics.

With the metric data, you can create dashboards like this on Datadog:

Datadog Dashboard

Prerequisites

Run

go get

$ go get github.com/yuya-takeyama/circleci-queue-to-datadog
$ CIRCLECI_API_TOKEN=<CircleCI API Token> DATADOG_API_KEY=<Datadog API Key> circleci-queue-to-datadog

Docker

$ docker run -e CIRCLECI_API_TOKEN=<CircleCI API Token> -e DATADOG_API_KEY=<Datadog API Key> yuyat/circleci-queue-to-datadog

Kubernetes

$ kubectl run circleci-queue-to-datadog --image=yuyat/circleci-queue-to-datadog:0.3.0 --env CIRCLECI_API_TOKEN=<CircleCI API Token> --env DATADOG_API_KEY=<Datadog API Key>

Options

  • --usernames=USERNAMES
    • Comma-separated list of usernames to check queue
  • --intervals=N
    • Interval to check CircleCI queue in seconds
    • Default: 60
  • --once
    • Exits after the first check