This is a simple example that demonstrates how to use the OpenTelemetry collector with DataSetExporter
.
- Modify otel-config.yaml
- Update
dataset_url
with the URL to your dataset server - Update
api_key
with your API key
- Update
- Run
docker-compose up --build --abort-on-container-exit
It starts three containers docker-compose.yaml:
otel-collector-dataset
- collector that accepts logs and tracestelemetrygen-logs-dataset
- telemetry generator that generates logs for 10 minutestelemetrygen-traces-dataset
- telemetry generator that generates traces for 10 minutes
This collector is based with components specified in otelcol-builder.yaml. It contains several processors and extensions that you may find useful.
When it's running following configuration is used - otel-config.yaml.
Dataset exporter is defined twice:
dataset/log
to export logsdataset/traces
to export traces. This configuration is keeping buffers around longer to increase chance that full trace will so that aggregated numbers will be correct.