receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317

exporters:
  # Expose received metrics as Prometheus for test assertions
  prometheus:
    endpoint: "0.0.0.0:9090"
    # Prefix all metric names with "pg_stat_ch_" so that instrument names
    # like "duration_us" become "pg_stat_ch_duration_us_count" etc.
    namespace: pg_stat_ch
    # Keep metric series alive for 3 hours so tests can query after flushing
    metric_expiration: 180m

  # Log all received signals to stdout (useful for debugging test failures)
  debug:
    verbosity: basic

extensions:
  health_check:
    endpoint: 0.0.0.0:13133

service:
  extensions: [health_check]
  pipelines:
    metrics:
      receivers: [otlp]
      exporters: [prometheus, debug]
    logs:
      receivers: [otlp]
      exporters: [debug]
