Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# <img src="frontend/public/logo.svg" alt="PlatformUp2Date logo" align="absmiddle" height="45"/> 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!
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
23 changes: 20 additions & 3 deletions deploy/k8s/base/platform-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/demo-current.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version": "2.53.0"}
Loading