We have installed Sitecore 9.0.2 from the marketplace bundle into Azure (small), as part of this there is an application insights.
My problem is that I would like to configure how this works, what is logged, how often and so forth. The standard installation reaches the daily data cap (.33GB) in a matter of hours. There is very little of this information I need, so it seems pointless to upp the data limit.
I am unable to find any good documentation, but I've found the following config files:
ApplicationInsights.config in the base of the site (and seems to be the same file for all 4 roles (cm,cd,prc,rep)
/app_config/sitecore/Sitecore.Cloud.ApplicationInsights.config (with small differences between the roles, mainly role name)
What I want is to limit performanceCounters to collect data every 5 minutes, and only a limited amount of counters like mem/cpu
I also want to remove all "INFO" from the trace log.
What I have done so far is removing all counters from Sitecore.Cloud.ApplicationInsights.config:
<!-- <add category="Sitecore.Data" name="Data | Client Data Reads / sec" /> -->
<!-- <add category="Sitecore.Data" name="Data | Client Data Writes / sec" /> -->
No real effect, as all the mem/cpu and so on counters are not represented here and is still logged every 5 sek.
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
Seems to have reduced it somewhat, but I do NOT want to remove any warnings/errors from the log and I'm very unsure as to what these settings actually limit.
Next I've added a patch (And showconfig show me it works)
<appender-ref ref="LogFileAppender" />
But I'm still getting hundreds of info warnings, mainly ManagedPoolThread #5 08:39:25 INFO 0 SMTP connections disposed. from the CM server
Anywone have any tips/links ?