No Metrics in Application Insights

nabi04 56 Reputation points

I have a web app hosted in Azure. I created function apps and app service with application insights enabled on each resource. As you can see from the screenshot of my app service, there is a metric data:

But when I checked its application insights, there are no data in the metrics:

I also checked traces from the logs and there are data being logged.

I would like to know why data is not reflected on the application insights. The instrumentation key are matched with the app settings of function app/app service. Hope you can help me on this issue. Thanks!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,014 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
215 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,361 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee

    Hi there,

    WebApp doesn't require to enable Application Insights
    By default, every WebApp has a bunch of default "free" platform-based metrics that could be used for monitoring of the WebApp instance itself.

    If you need to get more specific data related to the application itself (code-based telemetry), it requires to enable the Application Inisights.
    Literally, default platform metrics are being collected from Control Plane, ApplicationInisights metrics are being collected from "Data Plane"
    Both they are different pillars of data.

    p.s. traces table is a log-based data, metrics for Application Insights are collecting in Application Insights itself

  2. SwathiDhanwada-MSFT 18,551 Reputation points

    @nabi04 Can you please verify whether there is data logged for the above charts within application insights? You can below queries to verify them.

    Server Response Time :

    | where notempty(duration)  
    | extend request_duration = iif(itemType == 'request', duration, todouble(''))  
    | extend _sum = request_duration  
    | extend _count = itemCount  
    | extend _sum = _sum*_count  
    | summarize sum(_sum) / sum(_count) by bin(timestamp, 1m)  
    | render timechart  

    Failed Requests :

    | where success == 'False'  
    | summarize sum(itemCount) by bin(timestamp, 5m)  
    | render barchart  

    Server requests:

    | where client_Type != "Browser"  
    | summarize count_=sum(itemCount) by bin(timestamp, 1m)  
    | extend ["request"]='Overall'  
    | render timechart  

    If the above results don't show any data, then the charts are displaying correct information.

    0 comments No comments