Azure App Service Plan metrics vs Azure Web App Metrics 'Data Out' Metric

Mora 0 Reputation points
2025-10-31T17:35:40.43+00:00

Looking for insight on how App Plan metrics work in relation to the underlying instance(s).

For example, 'Data Out' is a metric on both sides, originally I thought that the app service plan would simply aggregate the data from the instances, but I see lower numbers in general. On a single instance and plan, the web app for example might show 50GB data out for the day, but the plan its hosted on metrics shows no more than 150MB (under the same aggregations/timeframe/etc). What is 'Data Out' tracking specifically on each side?

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

1 answer

Sort by: Most helpful
  1. Praneeth Maddali 2,715 Reputation points Microsoft External Staff Moderator
    2025-11-04T22:03:37.7133333+00:00

    Hi @Mora

    This difference happens because the 'Data Out' metric is calculated in various ways in the Azure Portal based on context and default settings, rather than due to any limitation of the App Service Plan in displaying total volume.

    Web App "Data Out"

    • Tracks the total outbound bytes sent by your app, including HTTP responses, API calls, and file downloads.
    • Uses Total (Sum) as the default aggregation, displaying the cumulative volume (e.g., 50 GB).
    • Provides accurate data for app-specific traffic and billing purposes.

    App Service Plan "Data Out"

    • Measures outbound bandwidth at the VM infrastructure level across all instances.
    • Offers both Total and Average aggregations:
    • Total shows the full sum across all instances (matches Web App in single-instance scenarios).
    • Average displays bytes per instance per time interval (often the default chart view).
    • The metric description mentions "average" because it's the default view, but you can switch to Total.

    Why You See 50 GB vs 150 MB

    • The Web App metric uses Total aggregation, resulting in 50 GB.
    • The App Service Plan metric likely uses Average aggregation, showing about 150 MB per 1-minute sample.
    • Switching the Plan metric to Total should display around 50 GB, with minor differences due to overhead.

    Actionable Advice

    1. In Azure Portal Metrics:
    • Navigate to the metrics for both the Web App and the App Service Plan.
    • Ensure that Aggregation is set to Total (Sum) for each.
    • Review and compare the results side by side.
    1. Please utilize Web App 'Data Out' (Total) for the following purposes:
    • Obtaining precise application traffic volume
    • Estimating billing amounts
    • Receiving alerts regarding application behavior
    1. Please utilize Plan 'Data Out' (Total) for the following purposes:
    • Aggregating egress data across applications
    • Conducting capacity planning
    1. Please ensure that you do not compare Total (Web App) with Average (Plan); it is important to consistently align aggregation types for accurate analysis.

    Reference:

    https://dori-uw-1.kuma-moon.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-web-sites-metrics#bytes-sent

    https://dori-uw-1.kuma-moon.com/en-us/azure/azure-monitor/reference/supported-metrics/microsoft-web-serverfarms-metrics#bytes-sent

    https://dori-uw-1.kuma-moon.com/en-us/azure/azure-monitor/metrics/metrics-aggregation-explained

    Let us know if the above helps or you need further assistance on this issue.

     

    Please "upvote" if the information helped you. This will help us and others in the community as well.


Your answer

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