# Connect to Dynatrace using the OTLP gRPC protocol

**URL:** <https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429>\
**Category:** OpenTelemetry\
**Tags:** opentelemetry\
**Created:** [February 13, 2023, 10:34pm UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429 "2023-02-13T22:34:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![urwashi](https://avatars.discourse-cdn.com/v4/letter/u/8491ac/32.png) [@urwashi](https://community.dynatrace.com/u/urwashi)\
**Post date:** [February 13, 2023, 10:34pm UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/1 "2023-02-13T22:34:34Z")

</div>

At present I am trying to connect to Dynatrace using my Open Telemetry Collector. I need to use the OTLP gRPC protocol for my POC. The configuration I have used is as below:

```auto
`exporters:
  otlp:
    endpoint: https://{environmentid}.live.dynatrace.com/api/v2/otlp:4317
    wait_for_ready: false
    sending_queue:
      enabled: false
    tls:
      insecure: false
      insecure_skip_verify: true`

```

However I see the the below error when i run my collector using the config above

```markup
{"level":"warn","ts":1676323322.198344,"msg":"[core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {\n \"Addr\": \"rcv415883.live.dynatrace.com/api/v2/otlp:4317\",\n \"ServerName\": \"rcv41584.live.dynatrace.com/api/v2/otlp:4317\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}. Err: connection error: desc = \"transport: Error while dialing dial tcp: lookup rcv41584.live.dynatrace.com/api/v2/otlp: no such host\"","grpc_log":true}

```

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 14, 2023, 3:25am UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/2 "2023-02-14T03:25:11Z")

</div>

Your endpoint is not a valid URL. Remove the part&nbsp;:4317 as Dynatrace does not listen on a such port and in the URL the port goes after the hostname - if applicable.

---

<div class="post-metadata">

**Author:** ![urwashis](https://avatars.discourse-cdn.com/v4/letter/u/d6d6ee/32.png) [@urwashis](https://community.dynatrace.com/u/urwashis)\
**Post date:** [February 14, 2023, 1:35pm UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/3 "2023-02-14T13:35:59Z")

</div>

Hi.

I changed endpoint as below

```markup
exporters:
      otlp:
        endpoint: https://{environmentid}.live.dynatrace.com:4317
        wait_for_ready: false
        sending_queue:
          enabled: false
        tls:
          insecure: false
          insecure_skip_verify: true

```

and I get error from otel collector as below:

```markup
"level":"info","ts":1676381087.568085,"msg":"Started watching file from end. To read preexisting logs, configure the argument 'start_at' to 'beginning'","kind":"receiver","name":"filelog","pipeline":"logs","component":"fileconsumer","path":"/data/output-logs"}
{"level":"warn","ts":1676381107.066672,"msg":"[core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {\n \"Addr\": \"rcv415883.live.dynatrace.com:4317\",\n \"ServerName\": \"rcv415883.live.dynatrace.com:4317\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}. Err: connection error: desc = \"transport: Error while dialing dial tcp 34.199.215.244:4317: i/o timeout\"","grpc_log":true}

```

and when I removed the port from endpoint such as below:

```markup
exporters:
      otlp:
        endpoint: https://{environmentid}.live.dynatrace.com

```

Then I get error as below

```markup
{"level":"info","ts":1676381289.5264444,"msg":"Starting stanza receiver","kind":"receiver","name":"filelog","pipeline":"logs"}
{"level":"warn","ts":1676381289.5262246,"msg":"[core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {\n \"Addr\": \"rcv415883.live.dynatrace.com\",\n \"ServerName\": \"rcv41584.live.dynatrace.com\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}. Err: connection error: desc = \"transport: Error while dialing dial tcp: address rcv41584.live.dynatrace.com: missing port in address\"","grpc_log":true}

```

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 14, 2023, 3:59pm UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/4 "2023-02-14T15:59:02Z")

</div>

Ok, if it requires the port, so try

```markup
https://{environmentid}.live.dynatrace.com:443/api/v2/otlp

```

---

<div class="post-metadata">

**Author:** ![urwashis](https://avatars.discourse-cdn.com/v4/letter/u/d6d6ee/32.png) [@urwashis](https://community.dynatrace.com/u/urwashis)\
**Post date:** [February 14, 2023, 4:32pm UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/5 "2023-02-14T16:32:17Z")

</div>

When I tried the endpoint as you suggested, i.e.

```auto
https://{environmentid}.live.dynatrace.com:443/api/v2/otlp

```

I get below error:

```javascript
{"level":"warn","ts":1676392138.4155657,"msg":"[core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {\n \"Addr\": \"rcv415883.live.dynatrace.com:443/api/v2/otlp\",\n \"ServerName\": \"rcv415883.live.dynatrace.com:443/api/v2/otlp\",\n \"Attributes\": null,\n \"BalancerAttributes\": null,\n \"Type\": 0,\n \"Metadata\": null\n}. Err: connection error: desc = \"transport: Error while dialing dial tcp: address tcp/443/api/v2/otlp: unknown port\"","grpc_log":true}

```

---

<div class="post-metadata">

**Author:** ![alexander\_dt](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@alexander\_dt](https://community.dynatrace.com/u/alexander_dt)\
**Post date:** [February 24, 2023, 7:27am UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/6 "2023-02-24T07:27:26Z")

</div>

I am afraid, gRPC is currently not yet supported.

> **[OpenTelemetry and Dynatrace](https://docs.dynatrace.com/docs/ingest-from/opentelemetry)**
>
> Learn how to integrate and ingest OpenTelemetry data (traces, metrics, and logs) into Dynatrace.

> Only export format&nbsp; **OTLP/HTTP binary Protobuf** &nbsp;from OpenTelemetry is supported

---

<div class="post-metadata">

**Author:** ![Krishi](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@Krishi](https://community.dynatrace.com/u/Krishi)\
**Post date:** [October 20, 2023, 8:36am UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/7 "2023-10-20T08:36:37Z")

</div>

Is gRPC supported in Dynatrace now?

I used the URL :

https:// {environmentid}.live.dynatrace.com/api/v2/otlp/v1/traces&nbsp;and created an access token to ingest OTLP&nbsp;  
Authorization: ‘Api-Token dt0c01.4\*\*\*\*\*\*\*\*\*\*\*\*\*.f\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*’

I could not see any traces in DynaTrace.

---

<div class="post-metadata">

**Author:** ![JeanBlanc](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jeanblanc/32/25897_2.png) [@JeanBlanc](https://community.dynatrace.com/u/JeanBlanc)\
**Post date:** [August 14, 2024, 9:18am UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/8 "2024-08-14T09:18:07Z")

</div>

Hello here 🙂&nbsp;  
Any news about gRPC compatibility ?

---

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [September 5, 2024, 1:54pm UTC](https://community.dynatrace.com/t/connect-to-dynatrace-using-the-otlp-grpc-protocol/38429/9 "2024-09-05T13:54:20Z")

</div>

Isn’t this it:

[Transform OTLP gRPC - Dynatrace Docs](https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/collector/use-cases/grpc)
