Dotnet Monitor: A Cross-Platform Diagnostic Collection


Running a.NET application in a variety of environments can make collecting diagnostic artifacts (e.g., logs, traces, and process dumps) difficult. A dotnet monitor is a tool that provides a unified way to collect these diagnostic artifacts whether you’re running on your desktop machine or in a Kubernetes cluster.

dotnet monitor exposes an HTTP API to query available processes, collect diagnostics artifacts, and check on the status of the requested artifacts

The HTTP API exposed by the dotnet monitor exposes the following APIs:

  • /processes– Gets detailed information about discoverable processes.
  • /dump– Captures managed dumps of processes without using a debugger.
  • /gcdump– Captures GC dumps of processes.
  • /trace– Captures traces of processes without using a profiler.
  • /metrics– Captures a snapshot of metrics of the default process in the Prometheus exposition format.
  • /livemetrics– Captures live streaming metrics of a process.
  • /logs– Captures logs of processes.
  • /info– Gets info about dotnet monitor.
  • /operations– Gets egress operation status or cancels operations.

References

dotnet monitor

dotnet 

See also