🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › core › diagnostics › dotnet-monitor
dotnet-monitor diagnostic tool - .NET | Microsoft Learn
The dotnet-monitor global tool is a way to monitor .NET applications in production environments and to collect diagnostic artifacts (for example, dumps, traces, logs, and metrics) on-demand or using automated rules for collecting under specified conditions.
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › core › diagnostics › metrics-collection
Collect metrics - .NET | Microsoft Learn
2 weeks ago - If the dotnet-counters tool isn't installed, run the following command: ... If your app is running a version of .NET older than .NET 9, the output UI of dotnet-counters will look slightly different than below; see dotnet-counters for details.
🌐
GitHub
github.com › dotnet › dotnet-monitor › blob › main › documentation › api › metrics.md
dotnet-monitor/documentation/api/metrics.md at main · dotnet/dotnet-monitor
This repository contains the source code for .NET Monitor - a tool that allows you to gather diagnostic data from running applications using HTTP endpoints - dotnet-monitor/documentation/api/metrics.md at main · dotnet/dotnet-monitor
Author   dotnet
🌐
Microsoft Learn
learn.microsoft.com › en-us › aspnet › core › log-mon › metrics › metrics
ASP.NET Core metrics | Microsoft Learn
August 14, 2024 - Monitor user registration and management. Track authentication patterns and potential security issues. Measure performance of Identity operations. Observe two-factor authentication usage. You can view these metrics using dotnet-counters to monitor them in real-time or export them to Prometheus and visualize them in Grafana using the techniques described earlier in this article.
🌐
Andrew Lock
andrewlock.net › creating-and-consuming-metrics-with-system-diagnostics-metrics-apis
Creating and consuming metrics with System.Diagnostics.Metrics APIs
January 27, 2026 - When running in production, you'll likely want to collect your metrics using an OpenTelemetry exporter integration or another solution (e.g. Datadog can collect these metrics without requiring application changes), but for local testing dotnet-counters is a very convenient tool. dotnet-counters is a .NET tool shipped by Microsoft that you can install by running: ... Alternatively, you can specify a command to run when starting the tool, and it will monitor the target process:
🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › on-dotnet › inspecting-application-metrics-with-dotnet-monitor
Inspecting application metrics with dotnet-monitor | Microsoft Learn
January 12, 2021 - dotnet-monitor is a command line tool that makes it easier to get access to diagnostics information in a dotnet process.In the episode, Rich is joined by Sourabh who explains to us the importance of gathering application diagnostics and also gives us a demo of how to run dotnet-monitor in Kubernetes[01:43] - Why was dotnet-monitor created?[05:37] - dotnet-monitor setup in kubernetes[14:50] - Integrating dotnet-monitor into other tools[16:45] - Support for additional metrics and event logs[19:12] - Exposing Prometheus style metrics Useful LinksIntroducing dotnet-monitor.NET Diagnostics on GitHubCollect diagnostics in containersWhat diagnostic tools are available in .NET Core?
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › core › diagnostics › metrics-instrumentation
Creating Metrics - .NET | Microsoft Learn
Run the new process and use dotnet-counters as before in a second shell to view the metrics: > dotnet-counters monitor -n metric-demo.exe --counters HatCo.Store Press p to pause, r to resume, q to quit.
🌐
Grafana
grafana.com › grafana › dashboards › 19297-dotnet-monitor-dashboard
dotnet-monitor dashboard | Grafana Labs
With the Prometheus data source ... in your pod. The dashboard shows the key default metrics relating to Memory, CPU, Requests and Garbage collection....
Find elsewhere
🌐
ABP
abp.io › community › articles › asp.net-core-metrics-with-.net-8.0-1xnw1apc
ASP.NET Core Metrics with .NET 8.0 | ABP.IO
Whenever a request is made to this ... dotnet-counters global tool. You can run the following command to see the metrics: dotnet-counters monitor -n MetricsDemo --counters MetricsDemo.ProductStore...
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › core › diagnostics › dotnet-counters
dotnet-counters diagnostic tool - .NET CLI - .NET | Microsoft Learn
To collect metrics using dotnet-counters, it needs to be run as the same user as the user running target process or as root. Otherwise, the tool will fail to establish a connection with the target process. Collect all counters at a refresh interval of 3 seconds and generate a csv as output: > dotnet-counters collect --process-id 1902 --refresh-interval 3 --format csv --counters is unspecified. Monitoring System.Runtime counters by default.
🌐
DEV Community
dev.to › dotnet › inspecting-application-metrics-with-dotnet-monitor-3bg7
Inspecting application metrics with dotnet-monitor - DEV Community
February 3, 2021 - dotnet-monitor is a command line tool that makes it easier to get access to diagnostics information i... Tagged with dotnet, diagnostics, metrics, performance.
🌐
GitHub
github.com › dotnet › dotnet-monitor › blob › main › documentation › configuration › metrics-configuration.md
dotnet-monitor/documentation/configuration/metrics-configuration.md at main · dotnet/dotnet-monitor
When using a collection tool like Prometheus, it is recommended that you set your scrape interval to MetricCount * GlobalCounter:IntervalSeconds. In the default configuration, we recommend you scrape dotnet monitor for metrics every 15 seconds.
Author   dotnet
🌐
Dotnetstudy
dotnetstudy.com › tools-sdk › dotnet-monitor
dotnet monitor: A Deep Dive into Monitoring and Diagnostics
The Metrics Endpoint in dotnet monitor is a cornerstone for performance monitoring, delivering critical insights into application health through various metrics. These metrics include CPU usage, memory consumption, and application-specific counters, ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › core › diagnostics › built-in-metrics-runtime
.NET runtime metrics - .NET | Microsoft Learn
This article describes the built-in metrics for .NET runtime libraries that are produced using the System.Diagnostics.Metrics API.
🌐
Grafana
grafana.com › grafana › dashboards › 23179-dotnet-runtime-metrics
Dotnet Runtime Metrics | Grafana Labs
This Grafana dashboard provides comprehensive monitoring of .NET Core runtime metrics, giving you deep insights into your application's performance, memory management, threading, and exception handling. Source code for this dashboard is available at: https://github.com/petabridge/dotnet-grafa...
🌐
Microsoft
devblogs.microsoft.com › dev blogs › .net blog › introducing dotnet-monitor, an experimental tool
Introducing dotnet-monitor, an experimental tool - .NET Blog
May 20, 2021 - When deploying in-cluster, a common pattern to collect metrics is to use Prometheus or another monitoring tool to scrape the metrics endpoint exposed by your application. As an example, when running in Azure Kubernetes Services (AKS), you can configure Azure Monitor to scrape prometheus metrics exposed by dotnet-monitor.
🌐
Microsoft
devblogs.microsoft.com › dev blogs › .net blog › what’s new in dotnet monitor
What's new in dotnet monitor - .NET Blog
October 11, 2022 - In addition to the collection of System.Runtime and Microsoft.AspNetCore.Hosting metrics, it is now possible to collect additional metrics (emitted via EventCounters) for exporting in the Prometheus exposition format. You can configure dotnet monitor to collect additional metrics as shown in the example below:
🌐
GitHub
github.com › prometheus-net › prometheus-net
GitHub - prometheus-net/prometheus-net: .NET library to instrument your code with Prometheus metrics · GitHub
This library allows you to instrument your code with custom metrics and provides some built-in metric collection integrations for ASP.NET Core.
Starred by 2.1K users
Forked by 317 users
Languages   C# 75.9% | JavaScript 21.9% | HTML 1.5% | CSS 0.4% | Dockerfile 0.1% | Shell 0.1%
🌐
Visual Studio Magazine
visualstudiomagazine.com › articles › 2021 › 05 › 05 › dotnet-monitor.aspx
Experimental Dotnet Monitor Tool Now Fully Supported -- Visual Studio Magazine
Egress providers: Developers can configure dotnet monitor to egress artifacts to other destinations: Azure Blob Storage and the local filesystem. It is possible to specify multiple egress providers via configuration. Custom metrics: In addition to the collection of System.Runtime and Microsoft.AspNetCore.Hosting metrics, it is now possible to collect additional metrics (emitted via EventCounters) for exporting in the Prometheus exposition format.