Help us shape the future of Go! Take the 2026 Go Developer Survey

buildkite-metrics

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2016 License: MIT Imports: 10 Imported by: 0

README

Buildkite Metrics

A command-line tool for collecting Buildkite build/job statistics for external metrics systems. Currently AWS Cloudwatch is supported.

Build status

Installing

Either download the latest binary from buildkite-metrics/buildkite-metrics-Linux-x86_64 or install with:

go get github.com/buildkite/buildkite-metrics

Development

You can build and run the binary tool locally with golang installed:

go run *.go -org [myorg] -token [mytoken]

Currently this will publish metrics to Cloudwatch under the custom metric prefic of Buildkite, using AWS credentials from your environment. It requires the cloudwatch:PutMetricData IAM permission.

Metrics

The following metrics are gathered:

Buildkite > RunningBuildsCount
Buildkite > RunningJobsCount
Buildkite > ScheduledBuildsCount
Buildkite > ScheduledJobsCount
Buildkite > IdleAgentsCount
Buildkite > BusyAgentsCount
Buildkite > TotalAgentsCount

Buildkite > (Queue) > RunningBuildsCount
Buildkite > (Queue) > RunningJobsCount
Buildkite > (Queue) > ScheduledBuildsCount
Buildkite > (Queue) > ScheduledJobsCount
Buildkite > (Queue) > IdleAgentsCount
Buildkite > (Queue) > BusyAgentsCount
Buildkite > (Queue) > TotalAgentsCount

Buildkite > (Pipeline) > RunningBuildsCount
Buildkite > (Pipeline) > RunningJobsCount
Buildkite > (Pipeline) > ScheduledBuildsCount
Buildkite > (Pipeline) > ScheduledJobsCount

License

See LICENSE.md (MIT)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL