| 1 | # OTLP gRPC Exporter |
| 2 | |
| 3 | <!-- status autogenerated section --> |
| 4 | | Status | | |
| 5 | | ------------- |-----------| |
| 6 | | Stability | [development]: profiles | |
| 7 | | | [stable]: traces, metrics, logs | |
| 8 | | Distributions | [core], [contrib], [k8s], [otlp] | |
| 9 | | Issues | [](https://github.com/open-telemetry/opentelemetry-collector/issues?q=is%3Aopen+is%3Aissue+label%3Aexporter%2Fotlp) [](https://github.com/open-telemetry/opentelemetry-collector/issues?q=is%3Aclosed+is%3Aissue+label%3Aexporter%2Fotlp) | |
| 10 | |
| 11 | [development]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#development |
| 12 | [stable]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#stable |
| 13 | [core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol |
| 14 | [contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib |
| 15 | [k8s]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-k8s |
| 16 | [otlp]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-otlp |
| 17 | <!-- end autogenerated section --> |
| 18 | |
| 19 | Export data via gRPC using [OTLP]( |
| 20 | https://github.com/open-telemetry/opentelemetry-proto/blob/main/docs/specification.md) |
| 21 | format. By default, this exporter requires TLS and offers queued retry capabilities. |
| 22 | |
| 23 | ## Getting Started |
| 24 | |
| 25 | The following settings are required: |
| 26 | |
| 27 | - `endpoint` (no default): host:port to which the exporter is going to send OTLP trace data, |
| 28 | using the gRPC protocol. The valid syntax is described |
| 29 | [here](https://github.com/grpc/grpc/blob/master/doc/naming.md). |
| 30 | If a scheme of `https` is used then client transport security is enabled and overrides the `insecure` setting. |
| 31 | - `tls`: see [TLS Configuration Settings](../../config/configtls/README.md) for the full set of available options. |
| 32 | - `retry_on_failure`: see [Retry on Failure](../exporterhelper/README.md#retry-on-failure) for the full set of available options. |
| 33 | - `sending_queue`: see [Sending Queue](../exporterhelper/README.md#sending-queue) for the full set of available options. |
| 34 | - `timeout` (default = 5s): Time to wait per individual attempt to send data to a backend. |
| 35 | |
| 36 | Example: |
| 37 | |
| 38 | ```yaml |
| 39 | exporters: |
| 40 | otlp: |
| 41 | endpoint: otelcol2:4317 |
| 42 | tls: |
| 43 | cert_file: file.cert |
| 44 | key_file: file.key |
| 45 | otlp/2: |
| 46 | endpoint: otelcol2:4317 |
| 47 | tls: |
| 48 | insecure: true |
| 49 | ``` |
| 50 | |
| 51 | By default, `gzip` compression is enabled. See [compression comparison](../../config/configgrpc/README.md#compression-comparison) for details benchmark information. To disable, configure as follows: |
| 52 | |
| 53 | ```yaml |
| 54 | exporters: |
| 55 | otlp: |
| 56 | ... |
| 57 | compression: none |
| 58 | ``` |
| 59 | |
| 60 | ## Advanced Configuration |
| 61 | |
| 62 | Several helper files are leveraged to provide additional capabilities automatically: |
| 63 | |
| 64 | - [gRPC settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configgrpc/README.md) |
| 65 | - [TLS and mTLS settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md) |
| 66 | - [Queuing, batching, retry and timeout settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) |