# Externalize Windows Performance Counters The [Windows Performance Counters feature](/monitoring/metrics/performance-counters.md) has been removed from the NServiceBus NuGet package. It is now available as a separate NuGet package named [NServiceBus.Metrics.PerformanceCounters](https://www.nuget.org/packages/NServiceBus.Metrics.PerformanceCounters/). The new package should be used to write to performance counters when using NServiceBus Versions 6.2 and above. ## Changed APIs The NServiceBus Performance Counter APIs have been marked as obsolete and have one-for-one equivalents in the new `NServiceBus.Metrics.PerformanceCounters` package. ### Enabling Critical Time Counter ```csharp // For NServiceBus version 6.x endpointConfiguration.EnableCriticalTimePerformanceCounter(); // For Performance Counters version 1.x var performanceCounters = endpointConfiguration.EnableWindowsPerformanceCounters(); ``` ### Enabling SLA Counter ```csharp // For NServiceBus version 6.x endpointConfiguration.EnableSLAPerformanceCounter(TimeSpan.FromMinutes(3)); // For Performance Counters version 1.x var performanceCounters = endpointConfiguration.EnableWindowsPerformanceCounters(); performanceCounters.EnableSLAPerformanceCounters(TimeSpan.FromMinutes(3)); ``` ## Compatibility The `NServiceBus.Metrics.PerformanceCounters` package is fully compatible with endpoints that use the NServiceBus package's Performance Counters functionality.