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:
1 parent
2744a84719
commit
5cc51c57de
24 files changed
+4880
-35
No files matched your search
@@ -149,6 +149,13 @@ export default function ApiSettings() {
|
||||
<code>{origin}/metrics</code> answers in Prometheus's text format — whether each server is up, its load, memory, disks and waiting updates, the alert counts, which integrations work, maintenance, and things about to expire — so a
|
||||
Grafana dashboard or Prometheus alert can use it. It is read-only and opens with a token sent as <code>Authorization: Bearer …</code>; a token in the address isn't accepted. It reads what the app already knows, so a scrape every 15 seconds is cheap.
|
||||
</p>
|
||||
<p className="text-secondary">
|
||||
For Grafana there is a ready-made dashboard — what needs attention, servers, disks, backups and the quieter things — that asks only for these series.{" "}
|
||||
<a href="/api/metrics-tokens/grafana-dashboard.json" download>
|
||||
Download the dashboard
|
||||
</a>
|
||||
, then in Grafana choose Dashboards → New → Import and pick your Prometheus when asked.
|
||||
</p>
|
||||
{newSecret && (
|
||||
<div className="border border-success rounded p-3 mb-3">
|
||||
<div className="fw-bold mb-1">Token for {newSecret.label}</div>
|
||||
|
||||
Reference in new issue
Block a user