Minor Changes
-
395ae8d: feat: support per-signal ClickHouse table TTLs and reconcile TTL on existing tables
Adds
HYPERDX_OTEL_EXPORTER_LOGS_TTL,HYPERDX_OTEL_EXPORTER_TRACES_TTL,HYPERDX_OTEL_EXPORTER_METRICS_TTLandHYPERDX_OTEL_EXPORTER_SESSIONS_TTL, each falling back to the existingHYPERDX_OTEL_EXPORTER_TABLES_TTL, so retention can be configured independently per signal (e.g. keep logs and traces for 6 months while metrics stay at 30 days).When
HYPERDX_OTEL_EXPORTER_RECONCILE_TABLE_TTL=true, the migrate tool also applies the configured TTL to tables that already exist (ALTER TABLE ... MODIFY TTL), diff-guarded so only tables whose retention actually differs are changed. Previously a changed TTL only affected newly-created tables. Extending a retention usesmaterialize_ttl_after_modify=1so data already on disk is kept for the new (longer) period; shrinking uses=0so a startup reconcile never triggers a bulk delete (existing parts age out under their old TTL). Only a plain<anchor> + <one fixed-length interval>retention is rewritten: compound policies (TO VOLUME/TO DISKtiering,RECOMPRESS,GROUP BYrollups, several rules) and calendar-unit retentions (month/quarter/year) are reported and left untouched. Off by default. Implements #1311.
Patch Changes
- d205a77: Allow the ClickHouse exporter request timeout to be configured with
HYPERDX_OTEL_EXPORTER_TIMEOUTin both OpAMP-managed and standalone collector
modes. The default remains 5 seconds.