'How can retrieve information about RAM,CPU, Disk usage from asp.net core on linux OS?
I need to retrieve total usage of system resource. On similar/other question told about calculation for specific process but I need info about total resource usage in system like in "Task Manager". Environment is asp.net core API on Ubuntu 20.01. How I can get it? I didn't find any info in documentation for .net core/asp.net core >3.0.
Solution 1:[1]
There is no simple API for this, however you can read /proc/stat and calculate the CPU usage your self.
https://www.baeldung.com/linux/get-cpu-usage#2-getting-cpu-usage-using-procstat
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nisd |
