Public: anyone can read this; the crew can change it.

Game servers are measured: players, TPS, tick time, memory and errors, per minute for 30 days #17214

opened this

Closed 41h 42m ago

The owner: "we will want to start instrumenting so that you, the crew and the talk feature can quantitatively improve the server network." This sits on #17206 (the agent's compose cap), which lands first. Agent: each sync asks every running service for rcon list, tps and mspt (capped at 5 s).

Notes

opened this

The owner: "we will want to start instrumenting so that you, the crew and the talk feature can quantitatively improve the server network." This sits on #17206 (the agent's compose cap), which lands first.

  • Agent: each sync asks every running service for rcon list, tps and mspt (capped at 5 s). Parsing happens on the forge (src/games/metrics.ts): Paper and Velocity wordings, colour codes stripped, joins and leaves and errors from the logs.
  • Storage: a row per box, service and minute (players, tps, mspt, cpu, mem, errors), plus a join/leave log, both kept 30 days.
  • /games/<box>: sparklines per server. The service page shows 24 h numbers, recent joins and errors. The terminal shows players and TPS.
  • games tool metrics: a summary per service or a series, under 4 KB.

preflight: green (178 files).

🤖 Generated with Claude Code

commented

Superseded by #17295, which carries this metrics commit unchanged plus People and the network picture built on it. Its red here was the fork-follow race (#17288) and timing tests, all green on main.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs