- Go 87.9%
- Dockerfile 6.2%
- Shell 4.8%
- Makefile 1.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
published / release-tag (push) Successful in 2s
published / runner-is-ready (push) Successful in 6s
published / gpg-is-ready (push) Successful in 7s
published / signing-is-ready (push) Successful in 7s
published / projectfile-is-valid (push) Successful in 6s
published / source-is-compliant (push) Successful in 9s
published / documentation-passes-lint (push) Successful in 13s
published / projectfile-is-ok (push) Successful in 8s
published / source-is-tested (push) Successful in 24s
published / source-is-secure (push) Successful in 39s
published / source-passes-lint (push) Successful in 57s
published / binaries-are-built (arm64, linux) (push) Successful in 5s
published / binaries-are-built (amd64, linux) (push) Successful in 5s
published / binaries-are-built (riscv64, linux) (push) Successful in 5s
published / binaries-are-signed (push) Has been skipped
published / image-is-built (amd64) (push) Successful in 1m7s
published / image-has-sbom (amd64) (push) Has been skipped
published / container-is-verified (amd64) (push) Successful in 47s
published / image-is-secure (amd64) (push) Successful in 1m41s
published / image-is-published (dockerhub) (push) Successful in 7s
published / image-is-published (kiota) (push) Successful in 12s
published / release-is-published (push) Has been skipped
published / go-install-is-ok (push) Has been skipped
published / release-notes-are-published (push) Has been skipped
published / published (push) Successful in 1s
|
||
| .compose | ||
| .container | ||
| .forgejo/workflows | ||
| .github/workflows | ||
| .grafana/dashboards | ||
| .makefile | ||
| .scripts | ||
| docs | ||
| LICENSES | ||
| .claudeignore | ||
| .containerignore | ||
| .dockerignore | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| .yamllint | ||
| AGENTS.md | ||
| AI_POLICY.md | ||
| CITATION.cff | ||
| CLAUDE.md | ||
| CODE_OF_CONDUCT.md | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| go.sum.license | ||
| leaders.go | ||
| leaders_test.go | ||
| lefthook.yaml | ||
| LICENSE | ||
| main.go | ||
| main_test.go | ||
| Makefile | ||
| projectfile.yaml | ||
| README.md | ||
| SECURITY.md | ||
| SUPPORT.md | ||
Doomsday Clock Exporter
Prometheus exporter that scrapes the Bulletin of the Atomic Scientists Doomsday Clock value and exposes it as a gauge of seconds to midnight. A background scraper caches the value with a configurable TTL, serves stale values with a degradation gauge on upstream failure, and retries with exponential backoff.
Features
- Cached scraping with graceful degradation
- Environment variable configuration
- Service-specific healthcheck
- Average and median age of the people with launch authority
- Self-observability metrics
It also inherits the features of B19 / Ubuntu — see Features for the full list.
Quick Start
Save this as compose.yaml:
---
services:
doomsday-clock-exporter:
image: docker.io/damianbuho/doomsday-clock-exporter:latest
ports:
- "8080:8080"
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
restart: unless-stopped
Then start it with docker compose up --detach.
What this provides
- Service
exporter— listens on8080 (metrics)— Prometheus metrics endpoint - Executable
doomsday-clock-exporter— commanddoomsday-clock-exporter - Container image
ghcr.io/damian-buho/doomsday-clock-exporter:latest - Container image
damianbuho/doomsday-clock-exporter:latest
Installation
Container image
Pull the published container image:
Pull from GHCR — linux/amd64, linux/arm64, linux/riscv64
docker pull ghcr.io/damian-buho/doomsday-clock-exporter:latest
Pull from DockerHub — linux/amd64
docker pull damianbuho/doomsday-clock-exporter:latest
Stable releases also publish X.Y.Z, X.Y and X tags — pull the precision you want to pin.
If the registries above are unreachable, pull from the origin instead:
Pull from Kiota — linux/amd64
docker pull kiota.ch/damian-buho/doomsday-clock-exporter:latest
Prebuilt binary
Download the prebuilt binary for your platform from GitHub Releases:
mkdir -p ~/.local/bin
curl --fail --location --output ~/.local/bin/doomsday-clock-exporter https://github.com/damian-buho/doomsday-clock-exporter/releases/latest/download/doomsday-clock-exporter-linux-$(uname -m)
chmod +x ~/.local/bin/doomsday-clock-exporter
~/.local/bin/doomsday-clock-exporter --help
Published for: linux/amd64, linux/arm64, linux/riscv64
To uninstall, delete that one file: rm ~/.local/bin/doomsday-clock-exporter.
Usage
Run the service in the background, publishing its ports:
From GHCR
docker run --detach --publish 8080:8080/tcp ghcr.io/damian-buho/doomsday-clock-exporter:latest
From DockerHub
docker run --detach --publish 8080:8080/tcp damianbuho/doomsday-clock-exporter:latest
Then check that it answers:
curl http://localhost:8080/metrics
Building
Clone the repository with its submodules:
git clone --recurse-submodules https://codeberg.org/damian-buho/doomsday-clock-exporter doomsday-clock-exporter && cd doomsday-clock-exporter
Build the container image locally:
make container-build
Run make with no arguments for the default target; run make help to list every target.
For the local dev loop, make dev-container brings up the dev-container.
Pipeline entry points:
make analyzed— Run the heavy analysis sweep (mutation testing, benchmarks)make audited— Re-scan the pinned dependencies and published artifacts for new vulnerabilitiesmake check-outdated— Report every pinned dependency that lags upstreammake release-is-ready— Run the pseudo-CI pipeline locally — build, test and scan, without publishing
Policies
Links
License
This project is licensed under MIT — see the LICENSE file for details.