---
title: "How to Monitor Windows Performance Counters with Retrace"
slug: "monitoring-windows-performance-counters"
description: "Monitor Windows Performance Counters with Retrace in three ways: .NET Framework Counters, Custom Counters, or Server Monitoring Templates."
updated: 2018-08-22T14:00:05Z
published: 2018-08-22T14:00:05Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Windows Performance Counters

Retrace can monitor any type of Windows Performance Counters.

There are three different ways to configure monitoring of Windows Performance Counters with Retrace. In this article we will review all three.

To learn more about ASP.NET Performance Counters, please review our blog post: [Top ASP.NET Performance Counters and How to Monitor Them](https://stackify.com/asp-net-performance-counters/)

### 1. Application Monitoring Template: .NET Framework Counters

These are monitors that can be configured within a specific application on the **App** tab. If you are tyring to monitor something specific to your .NET application, this is the preferred way.

Retrace makes it simple to select from dozens of standard counters. They are broken up by what they are related to. The .NET CLR, your app, IIS Site, or IIS Application Pool.

Many Windows Performance Counters use dynamic instance names that are based on the process ID, site name, or application pool name. **Retrace automatically and dynamically always monitors the correct instance name.**

![image.png](https://cdn.document360.io/3fcaf473-a1ef-4778-aa2c-fd28411c2b01/Images/Documentation/450b3444-dd55-4525-ab88-63fe5ff6f8f8.png)

### 2. Application Monitoring Template: Your Custom Counters

From the **Performance Counters** tab you can configure monitoring for virtually any Windows Performance Counter. This is most useful for monitoring **your own custom counters** related to your application.

> Consider using Retrace's [custom metrics for .NET](/docs/custom-metrics-configure-for-net) instead of your own Windows Performance Counters.

If you want to monitor Windows Performance Counters for the .NET CLR, ASP.NET or IIS, this is not how you should do it. You should instead configure it as shown above from the **App** tab.

Besides monitoring your own custom counters, you could also use the application based configuration for a Windows Service like SQL Server, Exchange, etc. You could configure counters that you want to monitor across every server running that application.

### 3. Server Monitoring Template

Retrace supports configuring monitoring based on an application or via server templates. Server monitoring templates can be configured to monitor any Windows Performance Counter but they will not dynamically track application specific counters that have dynamic instance names as described above in #1.

You could use server monitoring templates to monitor a series of counters for something like SQL Server and then apply the server monitoring template to only your servers that run SQL Server. Another example would be monitoring how many active RDP sessions are connected to the server.
