No Metrics in Application Insights

nabi04 56 Reputation points
2022-11-24T13:27:34.4+00:00

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:
263865-image.png

But when I checked its application insights, there are no data in the metrics:
263953-image.png

I also checked traces from the logs and there are data being logged.
263954-image.png

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.
2,819 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
209 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,945 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee
    2022-11-25T04:46:22.81+00:00

    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 17,726 Reputation points
    2022-12-06T06:44:38.117+00:00

    @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 :

    requests  
    | 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 :

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

    Server requests:

    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