Skip to content

feat(vector): replace Logflare with direct Vector → ClickHouse pipeline#8053

Merged
h0lybyte merged 1 commit intodevfrom
trunk/vector-ch-1773633763
Mar 16, 2026
Merged

feat(vector): replace Logflare with direct Vector → ClickHouse pipeline#8053
h0lybyte merged 1 commit intodevfrom
trunk/vector-ch-1773633763

Conversation

@h0lybyte
Copy link
Member

Summary

  • Replaced all 10 Logflare HTTP sinks with a single native ClickHouse sink (skip_unknown_fields, date_time_best_effort, disk buffer)
  • Added ch_normalize transform to flatten service logs into unified schema: {timestamp, service, level, message, metadata, pod_name, pod_namespace}
  • Added observability.logs_raw table DDL (ON CLUSTER, MergeTree, 90-day TTL, partitioned by day)
  • Sealed ClickHouse credentials for Vector namespace
  • Removes Logflare as the log ingestion middleware entirely — one less system in the pipeline

Architecture

Vector (DaemonSet) → ClickHouse (observability.logs_raw)

Pre-deploy (already applied)

  • CREATE DATABASE observability ON CLUSTER 'cluster'
  • CREATE TABLE observability.logs_raw ON CLUSTER 'cluster'
  • GRANT ALL ON observability.* TO logflare ON CLUSTER 'cluster'

Test plan

  • Verify SealedSecret decrypts in vector namespace
  • Confirm Vector pod starts with new config (check /health)
  • Verify rows appear in observability.logs_raw within 30s
  • Check SELECT service, count() FROM observability.logs_raw GROUP BY service

Ref #8015

…ne (#8015)

Drop Logflare as the log ingestion middleware. Replace all 10 Logflare
HTTP sinks with a single ClickHouse sink using Vector's native clickhouse
driver. Add ch_normalize transform to flatten service logs into a unified
schema. Add observability.logs_raw table DDL with ON CLUSTER, MergeTree
engine, and 90-day TTL.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit da5b71e into dev Mar 16, 2026
4 checks passed
@h0lybyte h0lybyte deleted the trunk/vector-ch-1773633763 branch March 16, 2026 04:40
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