Skip to content

docs: document ClickHouse Kafka-engine consumer for enriched flows - #402

Merged
pbrane merged 1 commit into
developfrom
docs/telemetryd-clickhouse-consumer
Jul 18, 2026
Merged

pbrane merged 1 commit into
developfrom
docs/telemetryd-clickhouse-consumer

Conversation

@pbrane

@pbrane pbrane commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

Extends docs/architecture/deltav-telemetryd-architecture.md with a new pipeline stage 4 describing how enriched flows reach ClickHouse:

  • The deltav-flows consumer is ClickHouse itself — the flows_kafka ENGINE = Kafka table (group deltav-clickhouse-persister, ProtobufSingle against deltav-flows.proto:FlowDocument, kafka_skip_broken_messages) plus the flows_ingest materialized view that drives consumption into flows_raw, all declared as init SQL in components/clickhouse/init/ — not a deployable Java persister.
  • Documents the three-way schema sync (proto / flows_kafka columns / positional MV SELECT) and the DROP+recreate migration pattern.
  • Adds the kafka_num_consumers scaling knob to the scaling-ceilings section and routes the mermaid diagram's ClickHouse edge through Kafka.

Documentation only — no code changes.

https://claude.ai/code/session_01E1cRKma4wRcjD6FmtVriA3

The deltav-flows consumer is ClickHouse itself (flows_kafka Kafka-engine
table + flows_ingest MV into flows_raw), declared as init SQL rather than
a deployable persister service. Covers the consumer-group/format settings,
the three-way schema sync (proto / flows_kafka / positional MV SELECT),
and the kafka_num_consumers scaling knob.

Claude-Session: https://claude.ai/code/session_01E1cRKma4wRcjD6FmtVriA3
@github-actions github-actions Bot added the docs label Jul 18, 2026
@pbrane
pbrane merged commit 3218f67 into develop Jul 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant