Add Metrics tab with historical server utilization and map capacity

This commit is contained in:
2026-09-20 21:58:08 -04:00
parent 3c8b5b2e40
commit 3a63e6d3ce
9 changed files with 304 additions and 4 deletions
+10
View File
@@ -560,3 +560,13 @@ BEGIN
WHEN NEW.restart_state = 'manual' THEN 'Manual restart required'
WHEN NEW.restart_state = 'held' THEN 'Changes held' ELSE NEW.restart_state END || CASE WHEN NEW.error IS NOT NULL THEN ' — ' || NEW.error ELSE '' END);
END;
-- Historical occupancy survives server removal; no player identities are stored.
CREATE TABLE IF NOT EXISTS metric_samples (
at INTEGER NOT NULL,
server TEXT NOT NULL,
game TEXT NOT NULL,
map TEXT NOT NULL,
players INTEGER,
capacity INTEGER,
PRIMARY KEY (at, server)
);