Correlating Applicaton Insights logs for cloud_RoleInstance with the instance name in Metrics for an App Service

Justin Wright 0 Reputation points
2024-04-25T15:44:13.73+00:00

I'm looking at some Azure Metrics and can see that there's a specific instance in our App Service that seems to have consistently higher response times.  It has a name like: ln1ldlwk0000LE

 

To example what's actually going wrong with that instance, I'd like to find that instance in Application Insights logs to see what's going on that specific instance during the time period I see the spike on the metrics view. However, in AppInsights the requests table (among others) uses cloud_RoleInstance. These values look completely different; example: d53628ee0c3e407eaafc19bcf26a8c4d

 

Has anyone tried to correlate the former to the latter?  I'd love ideas.

PS: What I mean by the instance on the Metrics view is when you split a metric by instance:
User's image

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,366 Reputation points
    2024-04-26T09:51:46.9066667+00:00

    @Justin Wright Thanks for reaching here! When you split a metric by instance in Azure Metrics, you can view the performance metrics for each individual instance of the App Service, In Azure App Service, the "instance" on the Metrics view refers to the individual instances of the app service that are running in the App Service Plan.

    This can be useful for identifying performance issues or resource constraints on specific instances of the app service.

    For details see- https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/analyze-metrics#apply-metric-splitting

    Note that- Application Insights, is feature of Azure Monitor, is an extensible Application Performance Management service and the logs in Application Insights are generated by application code. In Application Insights Application Map uses the cloud role name property to identify the components on the map. The Application Insights SDK or Agent automatically adds the cloud role name property to the telemetry emitted by components in an Azure App Service environment.

    Cloud role instance is the Name of the instance where the application is running. Computer name for on-premisis, instance name for Azure.

    For details suggest you refer here- https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-map?tabs=net#set-or-override-cloud-role-name

    I hope this helps! Let me know if you have any further questions.