From cb9848280e111031df58f9a4014e12e69dc75860 Mon Sep 17 00:00:00 2001 From: Jesper Jumziey Vesterberg Date: Wed, 21 Oct 2026 23:13:18 +0200 Subject: [PATCH] docs(quickstart): add an always-behind demo row and fix the release badge The quickstart promised a behind card from chaos.social, but on days when both live services run the latest release the board is all green. A third app, demo-always-behind, reads current from a fixture file in this repo (Prometheus 2.53.0) and latest from Prometheus's GitHub Releases (3.x), so one MAJOR card is always on the board. The release badge now includes pre-releases. Every release so far is a pre-release, so GitHub reports no latest release and the badge rendered "no releases or repo not found". --- README.md | 16 +++++++++++----- deploy/k8s/base/platform-config.yaml | 23 ++++++++++++++++++++--- docs/configuration.md | 2 +- docs/demo-current.json | 1 + 4 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 docs/demo-current.json diff --git a/README.md b/README.md index 4082e47..e05680a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # PlatformUp2Date logo PlatformUp2Date [![edge](https://github.com/sreyardship/PlatformUp2Date/actions/workflows/edge.yml/badge.svg)](https://github.com/sreyardship/PlatformUp2Date/actions/workflows/edge.yml) -[![release](https://img.shields.io/github/v/release/sreyardship/PlatformUp2Date)](https://github.com/sreyardship/PlatformUp2Date/releases/latest) +[![release](https://img.shields.io/github/v/release/sreyardship/PlatformUp2Date?include_prereleases)](https://github.com/sreyardship/PlatformUp2Date/releases/latest) [![license](https://img.shields.io/github/license/sreyardship/PlatformUp2Date)](LICENSE) You run a platform, a home lab or just a pile of apps. They're all out of date... let's change that! @@ -44,7 +44,7 @@ docker compose -f compose.quickstart.yml up ``` Then open [localhost:3000](http://localhost:3000). You -should see two application rows: +should see three application rows: - **mastodon** `current` is read from the public [chaos.social](https://chaos.social) instance's API (an observed running @@ -57,9 +57,15 @@ should see two application rows: [gitea.com](https://gitea.com) SaaS instance's version API; `latest` comes from Gitea's official image tags on Docker Hub. gitea.com tracks upstream closely, so this card is usually *green* (up to date). - -Both instances are live third-party services, so the colors on any given day -depend on what they happen to be running. Neither needs credentials. +- **demo-always-behind** is not a live service: `current` is read from a + fixture file in this repo ([`docs/demo-current.json`](docs/demo-current.json), + pinned to Prometheus 2.53.0) and `latest` comes from Prometheus's GitHub + Releases (3.x). This card is always *behind* by a major version, so the + quickstart shows a drift card even on a day when both live services above + happen to be current. Delete it when you add your own apps. + +The first two are live third-party services, so their colors on any given day +depend on what they happen to be running. None of the three needs credentials. ### Monitor your own apps diff --git a/deploy/k8s/base/platform-config.yaml b/deploy/k8s/base/platform-config.yaml index 9102b38..6a8a196 100644 --- a/deploy/k8s/base/platform-config.yaml +++ b/deploy/k8s/base/platform-config.yaml @@ -3,10 +3,12 @@ # kustomize base in this directory (replace it in your overlay — see # docs/deployment.md). # -# Monitors two real, public applications that need no credentials on either side — -# see docs/configuration.md for the full config reference this shape is drawn from. +# Monitors two real, public applications plus one fixture row. None needs +# credentials on either side — see docs/configuration.md for the full config +# reference this shape is drawn from. # -# The two apps are chosen so the board usually shows both outcomes at once: +# The two live apps are chosen so the board usually shows both outcomes at once; +# the fixture row guarantees a behind card on days when both happen to be current: # # - mastodon: current is read from the public chaos.social instance's API (a # genuine Tier A "observed running state" read — /api/v1/instance reports a @@ -19,6 +21,10 @@ # the two sample apps deliberately exercise different "latest" flavors # (github-release vs. oci-registry). gitea.com tracks upstream closely, so # this card is usually GREEN. +# - demo-always-behind: not a live service. current is a fixture file in this +# repo (docs/demo-current.json, pinned to Prometheus 2.53.0, the 2.x LTS line) +# and latest is Prometheus's GitHub Releases (3.x). This card is always BEHIND +# by a major version. Delete it when you replace this sample with your own apps. platform-config: scrape-interval: 1h # Optional GitHub token for the github-release leg (raises the anonymous @@ -60,3 +66,14 @@ platform-config: # type: basic # username: ${REGISTRY_USER:} # password: ${REGISTRY_PASSWORD:} + + - name: demo-always-behind + # Fixture, not a deployment: the file below pins current to 2.53.0 while + # Prometheus's latest release is 3.x, so this row always shows MAJOR drift. + changelog-url: https://github.com/prometheus/prometheus/releases/tag/v{version} + current: + type: http-json + url: https://raw.githubusercontent.com/sreyardship/PlatformUp2Date/main/docs/demo-current.json + latest: + type: github-release + repo: prometheus/prometheus diff --git a/docs/configuration.md b/docs/configuration.md index 17b8903..d9b3076 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -2,7 +2,7 @@ For a full working example, see [`deploy/k8s/base/platform-config.yaml`](../deploy/k8s/base/platform-config.yaml). -Both quick starts use it. It monitors two public apps and needs no credentials. +Both quick starts use it. It monitors two public apps plus one fixture row that is always behind, and needs no credentials. Each current source has a tier. The tier says how much the reading can be trusted, not what access it needs. Stick to Tier A when you can. See diff --git a/docs/demo-current.json b/docs/demo-current.json new file mode 100644 index 0000000..6de16e0 --- /dev/null +++ b/docs/demo-current.json @@ -0,0 +1 @@ +{"version": "2.53.0"}