I have a Azure web.app (s3) that has a memory leak. To investigate I like to add more PerformanceCounter to application insight.
But I can't make it work.
Here is my ApplicationInsights.config that I added. (https://stebet.net/monitor-your-net-garbage-collector-using-application-insights/)
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
<Counters>
<Add PerformanceCounter="\.NET CLR Memory(??APP_CLR_PROC??)\# Bytes in all Heaps" ReportAs="Bytes in all Heaps" />
</Counters>
</Add>
I add my new counter to ApplicationInsights.config and deploy to azure web.app. In Portal I see no data and find error.
AI: Performance counter is not available in the web app supported list. Counter is \Process(??APP_WIN32_PROC??)\Bytes in all Heaps.
Please help me understand what is the problem.
Thanks, Henrik