# Minimal profile: quickstart for evaluating click-dog.
# Generated by `click-dog init --profile minimal`.
# Most knobs fall back to the documented defaults; see docs/configuration.md
# for the full reference. Switch to the `production` profile before any
# real deployment.
#
# Intentional omissions (each is safe to leave out):
#   - clickhouse.username   → the ClickHouse driver connects as the "default"
#     user when no username is set (click-dog itself applies no default)
#   - monitor.circuit_breaker / backoff → minimal leaves resilience blocks out;
#     switch to `production` before a real deployment to materialize them
#   - filters.blacklist_operations → shipped commented-out below (inactive);
#     uncomment it (or switch to `production`) to drop engine-internal spans
# If you copy this file as a base for a real deployment, fill those in
# explicitly to show the operating envelope.

clickhouse:
  host: ch.example.com
  port: 9000
  database: system
  password: ${CLICKHOUSE_PASSWORD}

# filters.query_text_mode controls whether raw SQL crosses the export boundary.
# Use normalized_only or none for privacy-sensitive production environments.
# See docs/filtering.md#query-text-export-modes.
exporters:
  otel:
    - collector_address: otel.example.com:4317
      service_name: click-dog-monitor

monitor:
  enabled: true
  min_trace_duration_ms: 1000
  check_interval_s: 30

# Recommended before real use: drop high-volume engine-internal spans at the
# SQL level. They carry no clickhouse.query_id, so leaving them in drives the
# Health dashboard's "spans with query_id" tile toward zero and inflates ingest
# ~10-100x. The production profile enables this list; uncomment to use it here.
# filters:
#   query_text_mode: raw # raw | redacted | normalized_only | none
#   blacklist_operations:
#     - "MergeTreeSource"
#     - "MergeTreeMarksLoader"
#     - "MergeTreeIndex"
#     - "MergeTreeSequentialSource"
#     - "VFSWrite"
#     - "WriteBufferFromS3"
#     - "ConcurrentJoin"
#     - "QueryPipelineEx"

log_level: info
