Unable to resolve k8se-otel.k8se-apps.svc -- Cannot send telemetry to application insights

John Kendall 0 Reputation points
2024-08-15T23:13:44.8733333+00:00

I believe I have enabled the OTEL agent in my container app environment, however my container cannot resolve the host populated in the OTEL_EXPORTER_OTLP_ENDPOINT environment variable.

/app $ ping k8se-otel.k8se-apps.svc
ping: bad address 'k8se-otel.k8se-apps.svc'

These are the instructions I followed https://video2.skills-academy.com/en-us/azure/container-apps/opentelemetry-agents?tabs=arm

I have enabled debug logging on https://www.npmjs.com/package/@opentelemetry/sdk-node and this also cannot resolve the OTEL endpoint

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
399 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. hossein jalilian 6,440 Reputation points
    2024-08-15T23:34:54.3866667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    Check that the DNS configuration in your Azure Container App environment is set up correctly, and confirm that the service k8se-otel.k8se-apps.svc is correctly deployed and running in your Kubernetes environment.

    Make sure that your container app is configured to communicate with the Kubernetes service.

    Enabled debug logging, review the logs for any specific error messages related to DNS resolution or network connectivity issues. This can provide more insights into why the host cannot be resolved.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful


  2. John Kendall 0 Reputation points
    2024-08-19T00:41:10.3233333+00:00

    The issue ended up being related to Alpine/Musl and resolv.conf.

    k8se-otel.k8se-apps.svc wasn't being resolved as k8se-otel.k8se-apps.svc.cluster.local

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.