Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 27-Jul-2021 | - | ||||
testdata/ | H | 27-Jul-2021 | - | 93 | 86 | |
README.md | H A D | 27-Jul-2021 | 1.9 KiB | 53 | 37 | |
cfg-schema.yaml | H A D | 27-Jul-2021 | 4.8 KiB | 152 | 151 | |
config.go | H A D | 27-Jul-2021 | 1.5 KiB | 39 | 17 | |
config_test.go | H A D | 27-Jul-2021 | 3 KiB | 97 | 72 | |
doc.go | H A D | 27-Jul-2021 | 703 | 17 | 1 | |
factory.go | H A D | 27-Jul-2021 | 3.6 KiB | 123 | 97 | |
factory_test.go | H A D | 27-Jul-2021 | 6 KiB | 212 | 185 | |
otlp.go | H A D | 27-Jul-2021 | 6.5 KiB | 230 | 158 | |
otlp_test.go | H A D | 27-Jul-2021 | 17.4 KiB | 587 | 418 |
README.md
1# OTLP gRPC Exporter 2 3Exports data via gRPC using [OTLP]( 4https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md) 5format. By default, this exporter requires TLS and offers queued retry capabilities. 6 7:warning: OTLP metrics and logs formats are currently marked as "Alpha" and may change in 8incompatible way any time. 9 10Supported pipeline types: traces, metrics 11 12## Getting Started 13 14The following settings are required: 15 16- `endpoint` (no default): host:port to which the exporter is going to send OTLP trace data, 17using the gRPC protocol. The valid syntax is described 18[here](https://github.com/grpc/grpc/blob/master/doc/naming.md). 19If a scheme of `https` is used then client transport security is enabled and overrides the `insecure` setting. 20 21By default, TLS is enabled: 22 23- `insecure` (default = `false`): whether to enable client transport security for 24 the exporter's connection. 25 26As a result, the following parameters are also required: 27 28- `cert_file` (no default): path to the TLS cert to use for TLS required connections. Should 29 only be used if `insecure` is set to false. 30- `key_file` (no default): path to the TLS key to use for TLS required connections. Should 31 only be used if `insecure` is set to false. 32 33Example: 34 35```yaml 36exporters: 37 otlp: 38 endpoint: otelcol2:4317 39 cert_file: file.cert 40 key_file: file.key 41 otlp/2: 42 endpoint: otelcol2:4317 43 insecure: true 44``` 45 46## Advanced Configuration 47 48Several helper files are leveraged to provide additional capabilities automatically: 49 50- [gRPC settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configgrpc/README.md) 51- [TLS and mTLS settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md) 52- [Queuing, retry and timeout settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) 53