Parent issue: #3747
Split from plan review of #3747 (estimated ~150 lines).
PR stack: this issue's branch should target nikw9944/doublezero-3793 (the previous sub-issue's branch).
- Creates
internal/promscrape/scrape.go (fetches --agent-metrics-url,
parses with expfmt.NewTextParser, appends to
observer.agent_metrics.json).
- Surfaces a
Snapshot() accessor with the latest counter values for the
abort decider (decider lands in PR 4 — for now it's just exposed).
- Wires the scraper into
main.go as a real goroutine replacing the PR 1
stub.
- Updates README with the metrics-output section.
Parent issue: #3747
Split from plan review of #3747 (estimated ~150 lines).
PR stack: this issue's branch should target
nikw9944/doublezero-3793(the previous sub-issue's branch).internal/promscrape/scrape.go(fetches--agent-metrics-url,parses with
expfmt.NewTextParser, appends toobserver.agent_metrics.json).Snapshot()accessor with the latest counter values for theabort decider (decider lands in PR 4 — for now it's just exposed).
main.goas a real goroutine replacing the PR 1stub.