Transform OTLP gRPC
The following configuration example shows how you would configure a Collector instance to transform a gRPC OTLP request to its HTTP counterpart.
1receivers:2 otlp:3 protocols:4 grpc:56exporters:7 otlphttp:8 endpoint: $DT_ENDPOINT/api/v2/otlp9 headers:10 Authorization: "Api-Token $DT_API_TOKEN"1112service:13 pipelines:14 traces:15 receivers: [otlp]16 exporters: [otlphttp]17 metrics:18 receivers: [otlp]19 exporters: [otlphttp]20 logs:21 receivers: [otlp]22 exporters: [otlphttp]
For our configuration, we configure the following components.
receivers, we specify the gRPC
otlp receiver as active receiver component for our Collector instance.
exporters, we specify the default
otlphttp exporter and configure it with our Dynatrace API URL and the required authentication token.
For this purpose, we set the following two environment variables and reference them in the configuration values for
service, we eventually assemble our receiver and exporter objects into pipelines, which explictly accept gRPC requests and forward them on HTTP to Dynatrace.