Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
src/live-metrics.ts: rolling counters and p50/p95, rendered as Prometheus text - a pure module with unit tests #119
Parked 45d 5h ago
src/live-metrics.ts is a pure module for rolling counters, p50/p95 timings and gauges, rendered as Prometheus text. It lives in Software/so101/src/, with its unit tests in live-metrics.test.ts. The tests pass locally (5 pass, 0 fail).
-
Reviews
No review yet.
-
Checks
stopped parked by the crew deploy e71fd81
-
History
- live-metrics: rolling counters, p50/p95 timings, gauges as Prometheus text (#109) e71fd81
- forge.json: the app and its checks get 6 cores and 6 GiB - browser tests died at the 2-core step default (9 of 23 deploys) 8190a91
- TOP: the joint sliders follow your finger and stay where you put them - no snapping back (#79) c89e816
- /follow: size and rate checks (#78) ff3968f
- forge.json: the overhead camera on the Pi (100.89.95.68:8081) is a declared egress destination 3311805
- SAFETY P0: pressing STOP never makes the arm move - commands sent while held are dropped, never buffered and replayed (#72) 87dd4e8
- The machine, not a magic box: a Machine panel shows the raw arm state and every command in and out, live (#71) 21032a6
- Fast on a phone over 4G: first view under 2 s, the camera adapts to the connection, nothing loads until it is needed (#69) 56e9837
- Leader teleop: with the leader connected in Chrome, moving it moves the real arm - live, during your turn (#65) 896e52f
- Mobile driving: pick a joint and drag one big slider (portrait), two thumb sticks (landscape); zero motion the instant a finger lifts (#60) 058825d
- Mobile queue and turns: Join in one tap, "you're next" alert, a ring countdown on your turn, a Ready check so idle phones don't hold the arm (#57) 16caaba
- The live arm never flaps to the simulation on one slow answer: keep the connection, retry, and say "reconnecting" (#59) 5ae001d
- Terminal door: tty gating test for mute, end-turn and chat, and tty writes reaching web viewers live (#47) 3dd7ea9
- Admin: the owner is the app's admin, can name moderators, and every setting lives on one admin page (#45) 5d4fef3
- Safety first: the server enforces joint limits, speed limits, an emergency stop and a dead-man hold - no client can move the arm outside them (#31) f5d990e
- TOP: the hosted app connects to the real arm and camera - it still serves the simulation with ARM_SERVER set and both addresses granted (#43) caa4fc0
- Moderation: pause, ban and word filter (#42) 649a7c3
- Mobile first: the arm is fantastic on a phone - watch, queue, drive, chat and moderate with one thumb (#39) 9e5e048
- TOP: friends and family can join in seconds - pick a username in the app (no forge account), then queue and drive (#38) 89eb0ed
- More than one camera: the admin lists cameras, viewers pick one or see them side by side (#28) 472b15b
src/live-metrics.ts is a pure module for rolling counters, p50/p95 timings and gauges, rendered as Prometheus text. It lives in Software/so101/src/, with its unit tests in live-metrics.test.ts. The tests pass locally (5 pass, 0 fail). I could not type-check: bun x tsc --noEmit failed here with "bun is unable to write files to tempdir: ReadOnlyFileSystem", and the forge's check will run it.
This push changes no code. The branch already held commit e71fd81 with the module and tests. The earlier parking came from the preview deploy failing in its environment, not from the change, so I re-pushed the same commit to get a fresh check run on it. git push reported "Everything up-to-date".
The module is self-contained: nothing imports it yet, and it adds no dependencies. The parts to read are the percentile calculation, how old entries are dropped from the rolling window, and the escaping of metric names and labels in the rendered text.
🤖 Generated with Claude Code
src/live-metrics.tsis a pure module for rolling counters, p50/p95 timings and gauges, rendered as Prometheus text. It lives inSoftware/so101/src/, with its unit tests inlive-metrics.test.ts. The tests pass locally (5 pass, 0 fail). I could not type-check:bun x tsc --noEmitfailed here with "bun is unable to write files to tempdir: ReadOnlyFileSystem", and the forge's check will run it.This push changes no code. The branch already held commit e71fd81 with the module and tests. The earlier parking came from the preview deploy failing in its environment, not from the change, so I re-pushed the same commit to get a fresh check run on it.
git pushreported "Everything up-to-date".The module is self-contained: nothing imports it yet, and it adds no dependencies. The parts to read are the percentile calculation, how old entries are dropped from the rolling window, and the escaping of metric names and labels in the rendered text.
🤖 Generated with Claude Code
Closes #109