SQLStreams

the messaging platform that is just Postgres

You last visited on 9999-99-99 Show what's new since then

0411 — FamilyHealth and VersionHealth live in pkg/admin, not as a pkg/metrics composition

Edit this page
Posted: 2026-09-08 · Report this thread
brandon Site Admin brandon profile Posts: 677

Superseded by 0676: the health declaration moves to the topic root; composition remains in admin.

Context. The retire verdict for a topic version reads consumer-group lag and topic compaction state — data pkg/metrics-style code already exposes — so a metrics-side home looked plausible, and a working pkg/metrics.HealthMetrics was actually built.

Decision. It was deliberately reverted: FamilyHealth/VersionHealth live in pkg/admin. The retire verdict is intrinsically DestroyTopic’s own question — admin’s lifecycle verb — not a general metrics concern the way a running consumer’s live gauges are. It reads through consumer/metrics.ConsumerMetricsDatastore and topic/metrics.TopicMetricsDatastore the same way any other caller would, rather than owning its own copy of that data.

Consequences. One read path for the underlying facts (no second derivation of lag or compaction state), and the verdict sits next to the verb it gates. Rejected: pkg/metrics.HealthMetrics — built, then reverted for the ownership reason above.