<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need Help Resolving OpenTelemetry Collector Data Reception Issue in Dockerized Django Application in Splunk Observability Cloud</title>
    <link>https://community.splunk.com/t5/Splunk-Observability-Cloud/Need-Help-Resolving-OpenTelemetry-Collector-Data-Reception-Issue/m-p/680633#M241</link>
    <description>&lt;P&gt;Hi Splunk Community,&lt;/P&gt;&lt;P&gt;I'm working on a Django-based website server running inside a Docker container, and I'm facing an issue with OpenTelemetry Collector (Otel) data reception. Despite following the official Splunk documentation for installing Otel within a Docker container. I'm encountering an issue where the Otel installed on my VM isn't receiving any data from my Django application.&lt;/P&gt;&lt;P&gt;Here are the warning logs from the Otel container:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;2024-&lt;SPAN class=""&gt;03-&lt;SPAN class=""&gt;14 &lt;SPAN class=""&gt;04:&lt;SPAN class=""&gt;49:&lt;SPAN class=""&gt;05,&lt;SPAN class=""&gt;592 WARNING [opentelemetry.exporter.otlp.proto.grpc.exporter] [exporter.py:&lt;SPAN class=""&gt;293] [trace_id=&lt;SPAN class=""&gt;0 span_id=&lt;SPAN class=""&gt;0 resource.service.name=website trace_sampled=&lt;SPAN class=""&gt;False] - Transient &lt;SPAN class=""&gt;error StatusCode.UNAVAILABLE encountered &lt;SPAN class=""&gt;while exporting metrics &lt;SPAN class=""&gt;to localhost:&lt;SPAN class=""&gt;4317, retrying &lt;SPAN class=""&gt;in &lt;SPAN class=""&gt;32s.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially, my Dockerfile was configured with OTEL_EXPORTER_OTLP_ENDPOINT='localhost:4317'. Considering that might be the issue, I updated it to OTEL_EXPORTER_OTLP_ENDPOINT='otelcol:4317', aiming to directly communicate with the Otel collector service running as a Docker container. However, I'm still observing attempts to connect to localhost:4317 in the error logs.&lt;/P&gt;&lt;P&gt;Here's a brief overview of my setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Django application running in a Docker container.&lt;/LI&gt;&lt;LI&gt;OpenTelemetry Collector deployed as a separate Docker container named 'otel-collector'.&lt;/LI&gt;&lt;LI&gt;Dockerfile for the Django application updated to use the OpenTelemetry Collector container endpoint.&lt;P&gt;Could anyone provide insights or suggestions on what might be going wrong here? How can I ensure that my Django application correctly sends telemetry data to the Otel Collector?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help and suggestions!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 14 Mar 2024 05:10:45 GMT</pubDate>
    <dc:creator>Anders</dc:creator>
    <dc:date>2024-03-14T05:10:45Z</dc:date>
    <item>
      <title>Need Help Resolving OpenTelemetry Collector Data Reception Issue in Dockerized Django Application</title>
      <link>https://community.splunk.com/t5/Splunk-Observability-Cloud/Need-Help-Resolving-OpenTelemetry-Collector-Data-Reception-Issue/m-p/680633#M241</link>
      <description>&lt;P&gt;Hi Splunk Community,&lt;/P&gt;&lt;P&gt;I'm working on a Django-based website server running inside a Docker container, and I'm facing an issue with OpenTelemetry Collector (Otel) data reception. Despite following the official Splunk documentation for installing Otel within a Docker container. I'm encountering an issue where the Otel installed on my VM isn't receiving any data from my Django application.&lt;/P&gt;&lt;P&gt;Here are the warning logs from the Otel container:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;2024-&lt;SPAN class=""&gt;03-&lt;SPAN class=""&gt;14 &lt;SPAN class=""&gt;04:&lt;SPAN class=""&gt;49:&lt;SPAN class=""&gt;05,&lt;SPAN class=""&gt;592 WARNING [opentelemetry.exporter.otlp.proto.grpc.exporter] [exporter.py:&lt;SPAN class=""&gt;293] [trace_id=&lt;SPAN class=""&gt;0 span_id=&lt;SPAN class=""&gt;0 resource.service.name=website trace_sampled=&lt;SPAN class=""&gt;False] - Transient &lt;SPAN class=""&gt;error StatusCode.UNAVAILABLE encountered &lt;SPAN class=""&gt;while exporting metrics &lt;SPAN class=""&gt;to localhost:&lt;SPAN class=""&gt;4317, retrying &lt;SPAN class=""&gt;in &lt;SPAN class=""&gt;32s.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially, my Dockerfile was configured with OTEL_EXPORTER_OTLP_ENDPOINT='localhost:4317'. Considering that might be the issue, I updated it to OTEL_EXPORTER_OTLP_ENDPOINT='otelcol:4317', aiming to directly communicate with the Otel collector service running as a Docker container. However, I'm still observing attempts to connect to localhost:4317 in the error logs.&lt;/P&gt;&lt;P&gt;Here's a brief overview of my setup:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Django application running in a Docker container.&lt;/LI&gt;&lt;LI&gt;OpenTelemetry Collector deployed as a separate Docker container named 'otel-collector'.&lt;/LI&gt;&lt;LI&gt;Dockerfile for the Django application updated to use the OpenTelemetry Collector container endpoint.&lt;P&gt;Could anyone provide insights or suggestions on what might be going wrong here? How can I ensure that my Django application correctly sends telemetry data to the Otel Collector?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help and suggestions!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 14 Mar 2024 05:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Observability-Cloud/Need-Help-Resolving-OpenTelemetry-Collector-Data-Reception-Issue/m-p/680633#M241</guid>
      <dc:creator>Anders</dc:creator>
      <dc:date>2024-03-14T05:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Resolving OpenTelemetry Collector Data Reception Issue in Dockerized Django Application</title>
      <link>https://community.splunk.com/t5/Splunk-Observability-Cloud/Need-Help-Resolving-OpenTelemetry-Collector-Data-Reception-Issue/m-p/680744#M242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here are a couple of thoughts to consider. If you want to run the OTel collector in its own container, are you using appropriate networking mode for your container? For example, port 4317 (as well as others) would need to bind to the host networking ports so that your other container running your application can refer to "localhost:4317". You may want to start the OTel collector container first and then try some simple tests on the host command line to make sure it's accessible (e.g., 'telnet localhost 4317' or 'nc -vz localhost 4317')&amp;nbsp;&lt;A href="https://lantern.splunk.com/Data_Descriptors/Docker/Setting_up_the_OpenTelemetry_Demo_in_Docker" target="_blank"&gt;https://lantern.splunk.com/Data_Descriptors/Docker/Setting_up_the_OpenTelemetry_Demo_in_Docker&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, I didn't see any mention of container orchestration (kubernetes). This might be a good use-case for kubernetes where you run your application container with kubernetes and the OTel collector can run in a side-car configuration.&amp;nbsp;&lt;A href="https://docs.splunk.com/observability/en/gdi/opentelemetry/collector-kubernetes/kubernetes-config.html" target="_blank"&gt;https://docs.splunk.com/observability/en/gdi/opentelemetry/collector-kubernetes/kubernetes-config.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 19:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Observability-Cloud/Need-Help-Resolving-OpenTelemetry-Collector-Data-Reception-Issue/m-p/680744#M242</guid>
      <dc:creator>bishida</dc:creator>
      <dc:date>2024-03-14T19:32:15Z</dc:date>
    </item>
  </channel>
</rss>

