Azure App Service log stream displaying 'Unable to contact telemetry service: Error: getaddrinfo ENOTFOUND'

R. Hoek 0 Reputation points
2023-01-27T08:04:31.4033333+00:00

We're running an App Service on the Azure portal. The service is running without any problems (as far as I ca see), but sometimes (early in the morning or in the - not on regular work hours) we're receiving Azure alerts about high response times (sometimes more than a minute).

During work hours (on high loads) we normally don't have these notifications...

The App service is configured to be 'Always ON' - so that should not be an issue.

In Application Insights, we can see the high response time. But the response times of the SQL queries (executed for that API call) are well below 1 second, so that's not the cause of the high API response time.

So I started looking for logs (hopefully on a system level) and ran into the 'log stream' of the App Service.

This is only a live stream (no old log entries). But I then noticed several 'error' entries looking like this:

{"level":6,"message":"Unable to contact telemetry service: Error: getaddrinfo ENOTFOUND","timestamp":1674805894442}

What might be the cause of those errors?

And in addition, might these entries be a cause for the strange high response times?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,852 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2023-02-04T09:39:09.9233333+00:00

    Thanks for reaching here! Error: getaddrinfo ENOTFOUND, seems to path address issue.

    Check this doc link for investigating deployment issue: https://github.com/projectkudu/kudu/wiki/Investigating-issues

    Suggest you to refer this detailed article on Diagnostic Log Stream

    Also see your Application insights configuration, connection string and key is there.

    2023-01-31 11_42_33-

    Let us know.

    0 comments No comments