I want to get CPU and RAM utilization in Windows, Linux and macOS. Also I need SQL Server(Sqlservr) process CPU and RAM utilization. I am trying this in ASP.NET Core 3.1 but not able to found any solution. I am able to get dot net application CPU and RAM usage using the below command
dotnet counters monitor --process-id 11812 --providers MyEventCounter
Refered link : https://www.stefangeiger.ch/2020/05/07/dotnet-diagnostics-tools-counters.html . Please suggest me the solution or any other technology to get this done. Environment used: Windows 10, Visual Studio 2019 and .NET Core 3.1 .