Sitecore 9 on Azure PaaS comes with App Insights as a default. Out of the box, there are a bunch of metrics captured. This counts for a lot of data that comes at a cost. Even a clean install with no traffic reaches the default daily cap. This can be increased but comes at a cost.
I would like to reduce the metrics being measured under the counterLoader/includedCounters node. Does someone have experience with this? Which metrics are actually usefull and should definitly be retained, which one are more nice to haves? I know this is can depend on the kind of project but if there are any general guidelines, I would welcome them.
I never seen a list with usefull metrics. I discussed with Azure Team few months ago and they mention me to disabled GetChangesAvgTime counter.
One specific counter, GetChangesAvgTime, logged multiple times a second that can be disabled. It is related to change tracking on XDB search index worker.
To disable this specific counter please follow next steps:
Edit file on XP0 XConnect role or XP1 collectionsearch role
Find the specific counter (231) GetChangesAvgTime and (232) GetChangeAvgTimeBase.
Remove or comment out the following lines
"CounterDescription": "Get Changes average time elapsed time in milliseconds",
"CounterDescription": "Get Changes average time elapsed time in milliseconds Base",