I'm in the process of setting up app insights for a WCF project. The problem I'm having is I can't seem to get it to report on the process cpu, available memory etc. The charts just say no data.
I've got
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector">
Included in my applicationinsights.config file as I saw in another post that this is required, but this doesn't seem to sorted it.
Does anyone know if I need to add anything else to my project to get this too work? I assumed that this information would be collected by default.
I came across with very similar issue. Getting all other data on application insights, but no servers data such as average process CPU, available memory, process IO rate etc.
I found out that on the servers, my application running under application pool does not have sufficient permission to collect performance data.(You can check about this in Application Insights Status Monitor Preview, usually if you have permission issues, there will be a warning message about it)
Make these two steps:
Once the application pool have sufficient permission to collect performance data. All the data of servers are showing on insights.
https://azure.microsoft.com/en-us/documentation/articles/app-insights-monitor-performance-live-website-now/
Because you say that you added performance counters module manually to configuration file I assume that you did not use Web SDK nuget package that is supposed to add this module there automatically. If so you need to configure it in code rather than creating a configuration file. You need to create this module in code and also set instrumentation key.
TelemetryConfiguration.Active.InstrumentationKey = "Foo";
this.perfCounterCollectorModule = new PerformanceCollectorModule();
More here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With