Native slow-query traces
Export ClickHouse's native trace topology, enriched with query-log context so slow traces carry the database behavior that caused them.
Public beta
Click-Dog turns ClickHouse spans and query logs into traces, query families, and dashboards in your observability backend.
Follow slow queries, compare performance, and control what reaches your observability backend.
Export ClickHouse's native trace topology, enriched with query-log context so slow traces carry the database behavior that caused them.
Group thousands of statements into stable shapes that make p95, volume, and trend changes easier to reason about.
Capture an explicit known-good window, then detect conservative latency regressions and failure spikes without silently moving the baseline.
Gate automation with severity-based exit codes and send privacy-reviewed new or critical findings to webhooks and Datadog Events.
Choose raw, redacted, normalized-only, or no query text at the final export boundary, with fail-closed normalized-only behavior.
Create dashboards for application query analysis, exported user activity, and Click-Dog health.
Click-Dog runs beside the database, outside the request path. It reads telemetry over a read-only connection, filters and batches at the source, then sends data to one or more backends.
Explore bounded operational activity across users, databases, tables, and operations. It is not an audit log.
Roll normalized_query_hash values into stable shapes and add bounded query-log context.
Capture a fixed baseline before a change, then compare a later non-overlapping window for latency regressions and failure spikes.
Choose a warning or critical failure threshold and explicitly deliver eligible findings to webhooks or Datadog Events.
Keep the bounded local report, then follow an exact hash through query and native-trace evidence.
Click-Dog limits its source access and stays outside the request path.
click-dog test export asks every configured sink to accept a local span.click-dog test tracing verifies ClickHouse's sampled parent-child topology end to end./healthz, /readyz, /status, and metrics before and after enabling scheduled mode.Run the static Linux binary directly or generate a Docker Compose stack.
Installer-generated service, config validation, and local health checks.
Generated manifests for a centralized cluster reader with readiness probes.
Fleet rollout, canary playbook, bounded concurrency, and repeatable config.
Use a practical starter, see the bare minimum, or explore production controls.
Adds a password and normalized query text. Set CLICKHOUSE_PASSWORD before running.
clickhouse: host: localhost password: ${CLICKHOUSE_PASSWORD} exporters: otel: - collector_address: localhost:4317 filters: query_text_mode: normalized_only monitor: min_trace_duration_ms: 1000
For a local ClickHouse with no password and an OTLP collector. Uses the default raw query text policy.
clickhouse: host: localhost exporters: otel: - collector_address: localhost:4317 monitor: min_trace_duration_ms: 1000
Production controls for TLS, filtering, resilience, and monitoring. Replace the example hosts and certificate paths.
clickhouse: host: ch.example.com port: 9000 database: system username: default password: ${CLICKHOUSE_PASSWORD} secure: true ca_cert: /etc/click-dog/clickhouse-ca.pem max_open_conns: 2 max_idle_conns: 1 query_timeout_s: 30 exporters: otel: - collector_address: otel.example.com:4317 service_name: click-dog-monitor secure: true ca_cert: /etc/click-dog/otel-ca.pem monitor: enabled: true min_trace_duration_ms: 1000 check_interval_s: 30 max_spans_per_cycle: 1000 dedup_cache_size: 10000 circuit_breaker: enabled: true failure_threshold: 3 success_threshold: 1 reset_timeout_s: 60 backoff: enabled: true max_interval_s: 300 backoff_factor: 2.0 filters: query_text_mode: normalized_only blacklist_queries: - "^SYSTEM" - "^INSERT INTO.*\\.inner\\." blacklist_operations: - MergeTreeSource - MergeTreeMarksLoader - MergeTreeIndex - MergeTreeSequentialSource - VFSWrite - WriteBufferFromS3 - ConcurrentJoin - QueryPipelineEx metrics: enabled: true listen_address: ":9090" otlp: enabled: true health: enabled: true listen_address: ":8686" log_level: info
Work directly with Colt Consulting, Click-Dog's creator and maintainer, on topology, configuration, privacy, integrations, and go-live checks.