tink-ab / buildkite-stats

A small web dashboard with stats for all pipelines of Buildkite organization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buildkite Stats

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).

Developing

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.

Running

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 permission read_builds.
  • (optionally) PORT if you'd like a different TCP port than default 8080.

Screenshot

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.

Screenshot.

About

A small web dashboard with stats for all pipelines of Buildkite organization.

License:Apache License 2.0


Languages

Language:Go 100.0%