Skip to main content
telemetrygen is the OpenTelemetry Collector Contrib data generator. It emits synthetic OTLP logs, traces and metrics, and exposes flags that let you shape the data: multiple services, log severities, span statuses and child spans, and different metric types. Use it to confirm that a ClickStack OpenTelemetry collector is accepting data and that varied, realistic events surface in the ClickStack UI. This guide assumes the collector is already running with OTLP endpoints on 4317 (gRPC) and 4318 (HTTP).
1

Prerequisites

This guide assumes you have started Open Source ClickStack using the instructions for the all-in-one image, and that the OTLP endpoints (4317 gRPC and 4318 HTTP) are reachable. You also need the ingestion API key from the ClickStack UI under Team Settings > API Keys.
2

Install telemetrygen

Run telemetrygen from its Docker image (no install required). Define a small wrapper so the commands below stay readable; --add-host lets the container reach a collector listening on the host:
Or install the binary with Go and target localhost instead:
3

Set environment variables

Export the ingestion API key:
Define a small tg helper so each command only specifies what varies (service, severity, status, attributes):
4

Generate logs

Send logs as a realistic mix of severities across services, mostly informational with a warning and an error rather than one uniform stream:
5

Generate traces

Send multi-span traces from several healthy services plus one failing dependency. This gives the Service Map a realistic shape, mostly healthy with one erroring service, and populates the error views:
6

Generate metrics

Send the three common metric types so charts have a counter, a gauge, and a distribution:
--metric-type accepts Gauge, Sum, Histogram, or ExponentialHistogram.
7

Verify in ClickStack

Visit http://localhost:8080 to open the ClickStack UI. In the Search view, set the time range to Last 15 minutes and switch the source between Logs and Traces. Filter on ServiceName to see the frontend, checkout, cart, and payment services, and on SeverityText to find the warning and error log lines. Open a payment trace to see the child spans and the error status. Open the Chart Explorer, select Metrics, and chart one of the metric names you set above (for example http.server.requests) to verify metrics ingestion.