Skip to main content
otelgen is a small Go CLI that generates synthetic OTLP logs, traces and metrics. Use it to send test data to fully managed ClickHouse Observability and explore the results in Search and Chart Explorer.
1

Prerequisites

You need an existing fully managed ClickHouse Observability service and network access to its managed telemetry endpoint. See the fully managed Getting Started guide.
2

Install otelgen

Install with Homebrew:
Or install with Go:
3

Set environment variables

Open your ClickHouse Observability service and go to Team Settings → Managed Telemetry. Copy the OTLP HTTP endpoint and API key.Set the endpoint to its host and port, removing the https:// prefix. For example, https://YOUR_OTEL_ENDPOINT:4318 becomes YOUR_OTEL_ENDPOINT:4318. Do not append a signal path such as /v1/logs.
The commands below use --protocol http without --insecure, so otelgen connects over HTTPS with certificate verification. Removing https:// from the endpoint argument does not disable TLS. Your managed telemetry API key authenticates each request.
4

Generate traces

Send a short burst of multi-span traces:
--rate is traces per second and --duration is the run length in seconds. Omit --insecure so the connection uses HTTPS with certificate verification.
5

Generate logs

6

Generate metrics

Run the following command to generate metrics, then press Ctrl+C after a few seconds to stop it.
otelgen also supports gauge, histogram, up-down-counter and exponential-histogram subcommands under metrics.
7

Verify in ClickHouse Observability

In your ClickHouse Observability service, open Search and switch between the Logs and Traces sources to confirm new events. Set the time range to Last 15 minutes and look for the default service name otelgen.Open Chart Explorer, select Metrics, and chart otelgen.metrics.sum to verify metrics ingestion.