ApplicationInsights.config.install.xdt 1.7 KB

123456789101112131415161718192021222324252627
  1. <ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  2. <TelemetryModules xdt:Transform="InsertIfMissing">
  3. <Add xdt:Transform="InsertIfMissing" xdt:Locator="Match(Type)" Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
  4. <!--
  5. Use the following syntax here to collect additional performance counters:
  6. <Counters>
  7. <Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" />
  8. ...
  9. </Counters>
  10. PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName
  11. Counter names may only contain letters, round brackets, forward slashes, hyphens, underscores, spaces and dots.
  12. You may provide an optional ReportAs attribute which will be used as the metric name when reporting counter data.
  13. For the purposes of reporting, metric names will be sanitized by removing all invalid characters from the resulting metric name.
  14. NOTE: performance counters configuration will be lost upon NuGet upgrade.
  15. The following placeholders are supported as InstanceName:
  16. ??APP_WIN32_PROC?? - instance name of the application process for Win32 counters.
  17. ??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters.
  18. ??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters.
  19. -->
  20. </Add>
  21. </TelemetryModules>
  22. </ApplicationInsights>