---
title: Registering performance counters
related:
  - https://docs.kentico.com/k12sp/configuring-kentico/health-monitoring/installing-the-health-monitoring-windows-service.md
  - https://docs.kentico.com/k12sp/configuring-kentico/health-monitoring/enabling-health-monitoring.md
  - https://docs.kentico.com/k12sp/configuring-kentico/health-monitoring/monitoring-using-the-performance-monitor.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** **Kentico EMS required**
>
> Features described on this page require the **Kentico EMS** license.

There are three ways to register performance counters for a Kentico instance in Windows.

## Registering counters during the installation

In the Components step of the custom installer, select the **Performance counters for Health Monitoring** check box. The installer automatically registers the performance counters for the given instance of Kentico.

![Installing Kentico with performance counters](https://docs.kentico.com/docsassets/k12sp/registering-performance-counters/Performance_counters.png "Installing Kentico with performance counters")

Select the **Windows services for Scheduler and Health Monitoring** check boxto install the **Kentico Scheduler** and **Kentico Health Monitor** services. Installing these services can optimize the monitoring performance.

## Registering and removing counters manually using the Windows service

To register performance counters manually:

1. Navigate to the **CMS\Bin** folder of your Kentico project folder (typically _C:\inetpub\wwwroot\Kentico\CMS\bin_)
2. Execute the **HealthMonitoringService.exe** file from the Windows command line with the following parameters:

```powershell

HealthMonitoringService.exe /webpath=<disk path to web project root> /createcounters

```

To remove already existing performance counters, execute the **HealthMonitoringService.exe** file with the following parameters:

```powershell

HealthMonitoringService.exe /webpath=<disk path to web project root> /deletecounters

```

## Registering performance counters in Windows registry

Registration of performance counters is technically performed by adding specific keys to Windows registry. In the registry, these keys are located in _HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\services_. The keys represent individual registered counter categories and have the same names as the respective registered counter categories.

When you delete the registry keys, you also remove the respective counter categories, which unregisters the counters.
