Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @Andreas Roth ,
Thank you for reaching us regarding the issue.
The App Service for Linux/containers that trips up a lot of folks. The Average Response Time metric you're seeing in Azure Monitor measures the entire journey: from the moment the request hits Azure's front-end load balancer, through proxying to your container, your app's processing time, and back out. Your container logs only start timing once the request is handed off to your code inside the Docker container. That's why you can see 55 s on the platform side while every request in your logs finishes in under a second.
To figure out exactly what happened:
- Start with the built-in diagnostics:
In your App Service blade, go to Diagnose and solve problems > Availability and Performance. Run the detectors, they automatically correlate the platform metrics with your container activity and will flag queuing, proxy delays, or brief spikes. - Enable Monitoring > Diagnostic settings > App Service diagnostic logs, specifically Web Server (HTTP) logs, and send them to Log Analytics or Storage. These logs show the platform’s view of each request, including the actual time taken, even if the request never reached the container.
- Optionally, use Application Insights to capture application‑level timing and correlate it with platform metrics to confirm whether latency occurred before or inside the app.
Reference:
https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
https://learn.microsoft.com/en-us/azure/app-service/monitor-app-service?tabs=aspnetcore
https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics
Kindly let us know if the above helps or you need further assistance on this issue.
Please "accept" if the information helped you. This will help us and others in the community as well.