none
To a live web app if I wanted to install application insights...how can I do it ? RRS feed

  • Question

  • To a live web app if I wanted to install application insights.. how can I do it ?,
    I tried as this article says https://docs.microsoft.com/en-us/azure/application-insights/app-insights-monitor-performance-live-website-now but its not working though 
    
    Please help me...where am doing wrong ..?

    Wednesday, October 4, 2017 6:56 AM

Answers

  • Hi guys,

    I managed to get that working, Thank you.
    I manually installed following NuGet packages :
    1. Microsoft.ApplicationInsights - v2.4.0
    2. Microsoft.ApplicationInsights.Agent.Intercept - v2.4.0
    3. Microsoft.ApplicationInsights.DependencyCollector - v2.4.1
    4. Microsoft.ApplicationInsights.PerfCounterCollector - v2.4.1
    5. Microsoft.ApplicationInsights.Web - v2.4.1
    6. Microsoft.ApplicationInsights.WindowsServer - v2.4.1
    7. Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel - v2.4.0
    8. Microsoft.AspNet.ApplicationInsights.HostingStartup - v2.4.1
    9. Microsoft.AspNet.TelemetryCorrelation - v1.0.0
    10. Microsoft.Web.Infrastructure - v1.0.0.0
    11. System.Diagnostics.DiagnosticSource - v4.4.0 

    And added following tag in Web.config -> Under 
    <system.webServer> >> <modules>
    <remove name="TelemetryCorrelationHttpModule"/>
    <remove name="ApplicationInsightsWebTracking"/>

    Also in the application in the azure, set the following on App Settings
    APPINSIGHTS_JAVASCRIPT_ENABLED = true
    APPINSIGHTS_INSTRUMENTATIONKEY = <<Key>>

    Note : 
    I didn't understand why We needed that Web.config change ...!!!

    Friday, October 13, 2017 9:05 AM

All replies

  • Is it Azure Web App (i.e. you're installing extension) or on-premise IIS application (StatusMonitor)? 
    Friday, October 6, 2017 10:45 PM
    Moderator
  • It's a Azure Web app ...
    actually am getting "Page View Load Time Data" but not getting "Server Response Time" and Other telemetry data ...
    Saturday, October 7, 2017 3:32 PM
  • Try to  go to the Extensions menu item and re-install Application Insights extension. Also please check installation log in Kude in LogFiles\ApplicationInsights folder and check that you don't have any errors during installation, log should end with something like 'End of Application Insights installation and configuration', if it doesn't end with this phrase it may mean that installation was interrupted and you'll need to re-install the extension.

    Is it classic ASP.NET application or .NET Core v2?

    Monday, October 9, 2017 7:00 PM
    Moderator
  • yes ... its a classic ASP.Net application.
    Tuesday, October 10, 2017 4:26 AM
  • Thiva, did extension re-installation help? Did you have a chance to inspect the log?
    Thursday, October 12, 2017 5:34 PM
    Moderator
  • Hi guys,

    I managed to get that working, Thank you.
    I manually installed following NuGet packages :
    1. Microsoft.ApplicationInsights - v2.4.0
    2. Microsoft.ApplicationInsights.Agent.Intercept - v2.4.0
    3. Microsoft.ApplicationInsights.DependencyCollector - v2.4.1
    4. Microsoft.ApplicationInsights.PerfCounterCollector - v2.4.1
    5. Microsoft.ApplicationInsights.Web - v2.4.1
    6. Microsoft.ApplicationInsights.WindowsServer - v2.4.1
    7. Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel - v2.4.0
    8. Microsoft.AspNet.ApplicationInsights.HostingStartup - v2.4.1
    9. Microsoft.AspNet.TelemetryCorrelation - v1.0.0
    10. Microsoft.Web.Infrastructure - v1.0.0.0
    11. System.Diagnostics.DiagnosticSource - v4.4.0 

    And added following tag in Web.config -> Under 
    <system.webServer> >> <modules>
    <remove name="TelemetryCorrelationHttpModule"/>
    <remove name="ApplicationInsightsWebTracking"/>

    Also in the application in the azure, set the following on App Settings
    APPINSIGHTS_JAVASCRIPT_ENABLED = true
    APPINSIGHTS_INSTRUMENTATIONKEY = <<Key>>

    Note : 
    I didn't understand why We needed that Web.config change ...!!!

    Friday, October 13, 2017 9:05 AM
  • Remove entries should be automatically added during adding Microsoft.ApplicationInsights.Web nuget package, it's strange that you needed to add by hands... I'm glad that it works now.
    Tuesday, October 17, 2017 6:22 PM
    Moderator
  • I'm new to NuGet and our servers don't have internet access, i've downloaded the Nupkg files for them but how do i install them on the server? I've tried nuget install and the file and it doesn't work? 

    .: Lister :.

    Friday, August 9, 2019 8:52 PM
  • Hi Mike,

    Once we download the .nupkg files, you can move them to below folder path (provided if its a Windows machine) or any other path on your machine

    C:\Program Files (x86)\Microsoft SDKs\NuGetPackages

    Create a new folder structure with 2 level (FolderName1--> FolderName2--> copy the .nupkg file). You can further refer to NuGet Package Manager and setup the package source and refer to the package which has been copied offline. 

    If you have Visual studio installed on the machine which doesn't have internet access, you can always refer to NuGet Package Manager and package source as offline packages or the source you have setup and install the nuget package. 

    Hope this information helps. Thanks

    Wednesday, August 14, 2019 2:12 AM
    Owner