Skip to content

docs(design): asap-telegraf integration — unified allsketches plugin - #233

Merged
zzylol merged 1 commit into
mainfrom
docs/telegraf-integration-design
May 4, 2026
Merged

zzylol merged 1 commit into
mainfrom
docs/telegraf-integration-design

Conversation

@zzylol

@zzylol zzylol commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Design doc for Telegraf integration into the ASAP edge precompute framework. Mirrors the OTel two-layer split (codec under asap-precompute-go/telegraf/, lifecycle plugin under telegraf-patch/processors/allsketches/) and reuses the runtime / sketches wrappers / control-channel unchanged.

Key design choice: ship a single unified allsketches plugin with sketch_type as a config field, NOT five separate plugins as the OTel side has — Telegraf is greenfield, so there is no behavior-preservation constraint forcing the type-per-plugin split.

Total new code estimated at ~1500 LoC (codec ~500, plugin ~800, registration patch ~10, build script ~80).

Doc-only PR — no code. Review for design alignment before implementation begins (Phase B onwards).

Test plan

  • Read for accuracy against design-asap-edge-framework.md §6, §7 and ADR-0002 / ADR-0003.
  • Confirm the unified-plugin choice in §3 is the right call.
  • Confirm the value_field (single field) v1 scope and the deferred multi-field v2 path are acceptable.
  • Confirm the build pipeline approach (plain go build from patched fork, no OCB equivalent needed).
  • Land any §12 decisions before phase B starts.

Mirror the OTel two-layer split: asap-precompute-go/telegraf codec
(data-shape translation) and telegraf-patch/processors/allsketches
plugin (lifecycle glue). One unified plugin with sketch_type as config
instead of 5 separate plugins, since Telegraf is greenfield (no
parity-preservation constraint like the OTel collector).

Reuses asap-precompute-go runtime + sketches wrappers + controlchannel
unchanged. Estimated ~1500 LoC of new Telegraf-specific code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zzylol
zzylol merged commit b843961 into main May 4, 2026
@zzylol
zzylol deleted the docs/telegraf-integration-design branch May 4, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant