microsoft / ApplicationInsights-SDK-Labs

Application Insights experimental projects repository
MIT License
61 stars 48 forks source link

Web App Service - PerformanceCollectorModule, added counters not displaying #122

Open williamjv9 opened 7 years ago

williamjv9 commented 7 years ago

I’m unable to get “Add PerformanceCounter” to work for our deployed Web App Services.

  1. I’ve added the SDK to my .Net (4.6.1) project via VS2017
  2. Installed https://www.nuget.org/packages/Microsoft.ApplicationInsights.PerfCounterCollector/
  3. Added a list of counters in ApplicationInsights.config Example list: Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\% Processor Time" ReportAs="Processor Time" Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\% Process CPU" ReportAs="Process CPU" Add PerformanceCounter=".NET CLR Exceptions(??APP_CLR_PROC??)# of Exceps Thrown / sec" ReportAs="CLR Exceps per sec" Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Private Bytes" ReportAs="Private Bytes" Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\IO Data Bytes/sec" ReportAs="IO Data Bytes"
  4. Deployed the service.

After following the above steps, the added counters don’t appear on the Metrics Explorer blade.

I do see some of the default counters populating; Server Requests, Server Response Time, Failed Requests, etc…

Server counters "\Processor(_Total)\% Processor Time " and "\Memory\Available Bytes" don't populate and remain gray with ---

Any thoughts as to why I can’t get system level and custom counters to load?