• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..27-Jul-2021-

testdata/H27-Jul-2021-9386

README.mdH A D27-Jul-20211.9 KiB5337

cfg-schema.yamlH A D27-Jul-20214.8 KiB152151

config.goH A D27-Jul-20211.5 KiB3917

config_test.goH A D27-Jul-20213 KiB9772

doc.goH A D27-Jul-2021703 171

factory.goH A D27-Jul-20213.6 KiB12397

factory_test.goH A D27-Jul-20216 KiB212185

otlp.goH A D27-Jul-20216.5 KiB230158

otlp_test.goH A D27-Jul-202117.4 KiB587418

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