A small Buildkite dashboard useful to prioritize which pipelines a Buildkite organization is waiting the most on.
Noteworthy details:
- Since harvesting data can take ~30 seconds, the results are cached for (at most 10 minutes).
Install Taskfile then run
BRANCH=master BUILDKITE_API_TOKEN=XYZ BUILDKITE_ORGANIZATION=my-org task --watch
while modifying the files, you should have a running server automagically restarting in the background.
First execute
go install github.com/tink-ab/buildkite-stats
then run buildkite-stats
with the following environment variables defined:
BUILDKITE_ORGANIZATION
the name of the Buildkite organization that should be scraped.BUILDKITE_API_TOKEN
the API token to be used for querying Buildkite. Needs permissionread_builds
.- (optionally)
PORT
if you'd like a different TCP port than default 8080.
The UI isn't too pretty, but it does its job! ;) Pull requests prettifying it are welcome! Currently all data is presented on a single HTML page.