Skip to main content
Send logs, metrics, and traces to ClickHouse Observability using OpenTelemetry SDKs or a collector in your environment. The service includes a managed ingestion collector that receives telemetry over OTLP and writes it to ClickHouse Cloud.

Get your connection details

Open your service and navigate to Team Settings → Data → Managed Telemetry. Copy the OTLP HTTP endpoint and API key. The Env vars and Collector config tabs provide configuration for your service.Use the full HTTPS endpoint, including the port shown in Managed Telemetry. For a base OTLP HTTP endpoint, omit signal paths such as /v1/logs, /v1/traces, and /v1/metrics; the exporters append these paths.

Send directly from an application

Install and initialize OpenTelemetry instrumentation and an OTLP HTTP exporter for your application’s language. For SDKs that support environment-variable configuration, set these values in the application’s environment before starting it:
Replace the endpoint with the exact value from Managed Telemetry and YOUR_API_KEY with your service’s API key. The %20 encodes the space between Bearer and the key in the header environment variable.Environment-variable support varies by SDK. If your SDK requires configuration in code, supply the same HTTPS endpoint, OTLP HTTP protocol, and an authorization header with the value Bearer YOUR_API_KEY. See the OpenTelemetry exporter configuration reference for language support and signal-specific overrides.These settings configure export; your application still needs instrumentation to generate telemetry. For browser session recordings, follow the Session replay guide.

Forward data from a collector

If you already collect telemetry with an OpenTelemetry collector, configure an OTLP HTTP exporter to forward it to the managed endpoint. Keep your existing receivers and processors for collecting and processing data.Set the following environment variables in the collector’s runtime:
Replace both placeholders with the values from Managed Telemetry. Add this exporter to your collector configuration:
Add otlp_http/observability to the exporters list of each logs, metrics, or traces pipeline you want to forward under service.pipelines. Merge it into your existing configuration, then restart or redeploy the collector to apply the changes.The example uses the current otlp_http exporter name. Older collector releases may use otlphttp; use the name supported by your distribution. See the OTLP HTTP exporter documentation for configuration options.For a complete example that collects host logs and metrics, see Local system logs and metrics.

Verify ingestion

Generate telemetry in your application, then open Search in ClickHouse Observability. Select Logs or Traces, choose a time range that includes the new events, and search for your service name.If data does not appear, check your SDK or collector logs for export errors. Verify the endpoint, authentication header, and protocol, and confirm that the application or collector can reach the managed endpoint. Also check for signal-specific exporter settings that override the base endpoint or headers.You can use Send a Test Log in Managed Telemetry to submit a sample log to the service. Verify your application’s telemetry separately to confirm its instrumentation and export configuration.