Skip to content

3747-1: scaffolding + eAPI device sampler (~200 LOC code) #3793

@nikw9944

Description

@nikw9944

Parent issue: #3747

Split from plan review of #3747 (estimated ~200 lines).


  • Creates tools/stress/device-observer/cmd/device-observer/main.go with
    flag parsing, signal handling, working-dir creation, observer-config.json
    one-shot writer.
  • Creates internal/eapi/client.go (wrapper around goeapi.Connect,
    RunShowJSON + RunShowText).
  • Creates internal/sample/eos.go (per-tick loop running the five show
    commands, writing JSON files for the three JSON commands and .log files
    for the two show logging commands).
  • Stubs the other collectors as no-op interfaces so the goroutine wiring
    exists from PR 1.
  • Adds tools/stress/device-observer/README.md (initial draft documenting
    the binary, flags, and output file layout).
  • Lands docs/work-plan-3747.md (this file).
  • Output: binary builds and produces the five per-sample files when pointed
    at dz-local-device-dz1.

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