Skip to content

3747-2: agent Prometheus scrape (~150 LOC code) #3794

@nikw9944

Description

@nikw9944

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions