|
1 | 1 | ---
|
2 | 2 | title: dotnet-counters diagnostic tool - .NET CLI
|
3 | 3 | description: Learn how to install and use the dotnet-counter CLI tool for ad-hoc health monitoring and first-level performance investigation.
|
4 |
| -ms.date: 09/06/2020 |
| 4 | +ms.date: 09/06/2025 |
5 | 5 | ms.topic: reference
|
6 | 6 | ---
|
7 | 7 | # Investigate performance counters (dotnet-counters)
|
@@ -127,7 +127,7 @@ dotnet-counters collect [-h|--help] [-p|--process-id] [-n|--name] [--diagnostic-
|
127 | 127 |
|
128 | 128 | - **`--counters <COUNTERS>`**
|
129 | 129 |
|
130 |
| - A comma-separated list of counters. Counters can be specified `provider_name[:counter_name]`. If the `provider_name` is used without a qualifying list of counters, then all counters from the provider are shown. To discover provider and counter names, consult [built-in metrics docs](https://learn.microsoft.com/dotnet/core/diagnostics/built-in-metrics). For [EventCounters](event-counters.md), `provider_name` is the name of the EventSource and for [Meters](metrics.md), `provider_name` is the name of the Meter. |
| 130 | + A comma-separated list of counters. Counters can be specified `provider_name[:counter_name]`. If the `provider_name` is used without a qualifying list of counters, then all counters from the provider are shown. To discover provider and counter names, consult [built-in metrics docs](built-in-metrics.md). For [EventCounters](event-counters.md), `provider_name` is the name of the EventSource and for [Meters](metrics.md), `provider_name` is the name of the Meter. |
131 | 131 |
|
132 | 132 | - **`--format <csv|json>`**
|
133 | 133 |
|
@@ -199,7 +199,7 @@ dotnet-counters monitor [-h|--help] [-p|--process-id] [-n|--name] [--diagnostic-
|
199 | 199 |
|
200 | 200 | - **`--counters <COUNTERS>`**
|
201 | 201 |
|
202 |
| - A comma-separated list of counters. Counters can be specified `provider_name[:counter_name]`. If the `provider_name` is used without a qualifying list of counters, then all counters from the provider are shown. To discover provider and counter names, consult [built-in metrics docs](https://learn.microsoft.com/dotnet/core/diagnostics/built-in-metrics). For [EventCounters](event-counters.md), `provider_name` is the name of the EventSource and for [Meters](metrics.md), `provider_name` is the name of the Meter. |
| 202 | + A comma-separated list of counters. Counters can be specified `provider_name[:counter_name]`. If the `provider_name` is used without a qualifying list of counters, then all counters from the provider are shown. To discover provider and counter names, consult [built-in metrics docs](built-in-metrics.md). For [EventCounters](event-counters.md), `provider_name` is the name of the EventSource and for [Meters](metrics.md), `provider_name` is the name of the Meter. |
203 | 203 |
|
204 | 204 | **`-- <command>`**
|
205 | 205 |
|
@@ -274,7 +274,7 @@ dotnet-counters monitor [-h|--help] [-p|--process-id] [-n|--name] [--diagnostic-
|
274 | 274 | ```
|
275 | 275 |
|
276 | 276 | > [!NOTE]
|
277 |
| - > If the app uses .NET version 8 or lower the [System.Runtime Meter](https://learn.microsoft.com/dotnet/core/diagnostics/built-in-metrics-runtime#systemruntime) didn't exist yet and dotnet-counters will fall back to display the older [System.Runtime EventCounters](https://learn.microsoft.com/dotnet/core/diagnostics/available-counters#systemruntime-counters) instead. The UI will look slightly different as shown below. |
| 277 | + > If the app uses .NET version 8 or lower the [System.Runtime Meter](built-in-metrics-runtime#systemruntime) didn't exist yet and dotnet-counters will fall back to display the older [System.Runtime EventCounters](available-counters#systemruntime-counters) instead. The UI will look slightly different as shown below. |
278 | 278 |
|
279 | 279 | ```
|
280 | 280 | [System.Runtime]
|
|
0 commit comments