Add status pages (a share link kind) and a downloadable Grafana dashboard

- Share links can open a status page: an admin picks servers, integrations and Uptime Kuma
  monitors and names them; the public sees only those names, Working / Not working /
  Being worked on / Can't tell, an optional message and the 30-day figure (share_links.kind/
  title/message and status_items, migration 0033). A status address doesn't open the wall and
  the other way round; Uptime Kuma is asked at most every 30 seconds
- Grafana dashboard built from code (download in Settings -> API and webhooks); a test checks
  it only uses series /metrics serves
- Tests and docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-18 15:38:08 +02:00
1 parent 2744a84719
commit 5cc51c57de
24 files changed
+4880 -35

No files matched your search

+22
View File
@@ -603,6 +603,28 @@ removed answers the same way, and making and removing links are in the audit log
(without the secret). It is as private as the address: remove it when it isn't
needed.
**Status pages** are the other thing a share link can open: a page for family or housemates
that answers "is the movie server up?" without a sign-in and without anything that isn't
theirs to see. Pick **A status page** when making a link, then choose what is on it and what
each thing is called ("Movies and TV", "Family photos"): each is a server (reporting, or not
— judged by its own limits), an integration (its latest calls work, or don't) or an Uptime
Kuma monitor. It says *Working*, *Not working*, *Being worked on* (under a maintenance
window) or *Can't tell right now*, with the 30-day figure where one is known, a heading and
an optional message ("Movies are being updated tonight"). The page follows the device's
light or dark setting and looks again every 30 seconds. Whoever has the address is given only
the names you chose and those states — no addresses, no ids, no alert text, nothing about
what the thing really is — and a status page's address doesn't open the wall display (or the
other way round). Uptime Kuma is asked at most every 30 seconds however many people look. Up
to 30 things per page.
**A Grafana dashboard** for the `/metrics` series: Settings → API and webhooks → *Download
the dashboard*, then in Grafana Dashboards → New → Import and pick your Prometheus when
asked. It has rows for what needs attention, servers (with a server picker), disks (usage,
filling up, SMART health, SSD wear, temperature, ZFS pools), backups (guests by state, age
of each newest backup, the app's own backup) and secrets, power and the app itself. It is
built from the same code as `/metrics`, and a test checks that it only asks for series that
are really served. See [API.md](API.md).
**Since you last looked.** The dashboard opens with a card on what happened
since you last pressed "Got it" (the first time, the last day; never more than
two weeks): servers that stopped reporting or filled a disk, services that