> For the complete documentation index, see [llms.txt](https://docs.thousandeyes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/otel-collector-config.md).

# OpenTelemetry Collector Configuration

ThousandEyes for OpenTelemetry uses the [OpenTelemetry Collector](https://opentelemetry.io/docs/collector) to export the ThousandEyes telemetry data.

This section describes the configuration used to export data. The configuration depends on the stream's `type` and `endpointType`.

{% hint style="warning" %}
Delivery is best effort. For failures that can be retried, ThousandEyes retries delivery for up to 30 seconds. If delivery still fails after that period, ThousandEyes drops the measurements. Measurements might also be lost if the collector or exporter queue reaches capacity.
{% endhint %}

* For streams with `type` set to `opentelemetry` and `endpointType` set to `grpc`, ThousandEyes uses an [OTLP gRPC Exporter](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/otlpexporter/README.md) with the following configuration:

```yaml
exporters:
  otlp:
    endpoint: <stream.streamEndpointUrl>
    headers: <stream.customHeaders>
    tls:
       insecure: false
    retry_on_failure:
       enabled: true
       initial_interval: 5s
       multiplier: 1.5
       max_interval: 30s
       max_elapsed_time: 30s
```

* For streams with `type` set to `opentelemetry` and `endpointType` set to `http`, ThousandEyes uses an [OTLP HTTP Exporter](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/otlphttpexporter/README.md) with the following configuration:

```yaml
exporters:
  otlphttp:
    metrics_endpoint: <stream.streamEndpointUrl>
    headers: <stream.customHeaders>
    tls:
       insecure: false
    retry_on_failure:
       enabled: true
       initial_interval: 5s
       multiplier: 1.5
       max_interval: 30s
       max_elapsed_time: 30s
```

* For streams with `type` set to `splunk-hec`, ThousandEyes uses a [Splunk HTTP Event Collector (HEC) Exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/splunkhecexporter/README.md) with the following configuration:

```yaml
exporters:
  splunk_hec:
    endpoint: <stream.streamEndpointUrl>
    token: <stream.exporterConfig.splunkHec.token>
    splunk_app_name: "ThousandEyes OpenTelemetry"
    source: <stream.exporterConfig.splunkHec.source>
    sourcetype: <stream.exporterConfig.splunkHec.sourceType>
    index: <stream.exporterConfig.splunkHec.index>
    tls:
      insecure: false
    retry_on_failure:
      enabled: true
      initial_interval: 5s
      multiplier: 1.5
      max_interval: 30s
      max_elapsed_time: 30s
```

### Placeholders

* `<stream.streamEndpointUrl>` is replaced with the actual endpoint URL configured in the `stream`.
* `<stream.customHeaders>` is replaced with the actual custom headers configured in the `stream`.
* `<stream.exporterConfig.splunkHec>` is replaced with the actual splunkHec exporter config configured in the `stream`.
