Find Aggregate CPU Utilization Breakdown for All App Services within App Service Plan

Mike-E-angelo 591 Reputation points
2023-08-09T14:54:48.9833333+00:00

I am using Azure Monitoring to see a CPU utilization reading such as the following for my Azure AppService Plan:

User's image

I have 14 AppServices that are on this App Service Plan. I see the spikes but do not know which of the 14 applications (or a combination thereof) is causing them.

How do I configure this graph so that it breaks down the CPU by the 14 applications installed on my AppService Plan?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2023-08-09T18:07:51.82+00:00

    Hi @Mike-E-angelo @Mike-E-angelo

    Have you tried enabling application insights for your apps? Application Insights is an extension of Azure Monitor and provides application performance monitoring (APM) features. APM tools are useful to monitor applications from development, through test, and into production in the following ways:

    To break down the CPU utilization by the 14 applications installed on your App Service Plan, you can use Application Insights It can be used to monitor the performance of your web applications, including CPU utilization.

    Here are the steps to configure Application Insights to break down the CPU utilization by the 14 applications installed on your App Service Plan:

    • Create an Application Insights resource: In the Azure Portal, create a new Application Insights resource and link it to your App Service Plan.
    • Enable Application Insights : In the Azure Portal, go to each of your 14 web applications and enable Application Insights. This will allow Application Insights to collect performance data for each of your web applications.
    • Configure the CPU utilization chart: In the Application Insights resource, go to the Metrics Explorer and select the CPU utilization metric. Then, add a split by dimension for the "Cloud_RoleInstance" property. This will break down the CPU utilization by each of your web applications.
    • Analyze the data: Once you have configured the chart, you can analyze the data to identify which of your web applications are causing the CPU spikes.

    Hope that helps.

    Grace


  2. Mike-E-angelo 591 Reputation points
    2023-08-15T18:23:58.9833333+00:00

    Azure Portal be broken, slow+difficult+confusing to use, and terribly supported.

    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.