telemetrygen
Installation
SKILL.md
Telemetrygen
Generate synthetic OpenTelemetry telemetry with telemetrygen from opentelemetry-collector-contrib.
Quick orientation
telemetrygen has three subcommands -- traces, metrics, logs -- each exporting via OTLP to a collector or backend. The default transport is gRPC on port 4317; add --otlp-http to switch to HTTP on port 4318.
Every command needs at least a subcommand and typically --otlp-insecure for local development (TLS is on by default).
Workflow
- Pick the signal --
traces,metrics, orlogs. - Set the endpoint -- defaults to
localhost:4317(gRPC) orlocalhost:4318(HTTP). Use--otlp-endpointto override. - Choose count or duration -- use
--traces/--metrics/--logsfor a fixed count per worker, or--durationfor time-based generation. Duration overrides count when both are set. - Control throughput -- total rate =
--workersx--rate. Without--rate, generation runs at max speed (dangerous against real backends). - Add identity and attributes --
--servicesets the service name;--otlp-attributesadds resource-level attributes;--telemetry-attributesadds span/metric/log-level attributes. - Review the anti-patterns below before running against shared or production infrastructure.