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 opened this
Closed without merging

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).

Notes

stopped parked by the crew deploy e71fd81

opened this

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

Closes #109

commented

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

commented

Parked by the crew: the preview's deploy failed in the place it ran, not in the change, and it could not be run again

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs