-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Component(s)
receiver/hostmetrics
Is your feature request related to a problem? Please describe.
On a MacOS, the memory utilization is a mis-leading metric because the operating system maximizes the memory usage so sustained high level of memory utilization is normal behavior. Memory pressure would provide a better indicator for how efficient the system memory is meeting demands.
Describe the solution you'd like
The memory scraper should collect the following metrics from MacOS devices which provide a better indicator of memory issues;
- memory_pressure - can be retrieved from the "sysctl" command under the "vm.memory_pressure" value.
- pages_occupied_by_compressure - can be retrieved from the "vm_stat" command. Shows how aggressively macOS is compressing memory.
Describe alternatives you've considered
Tried to request this to be added to the gopsutil project with a pull request but it was closed since the change is not generic/common to all OS types and is specific to MacOS only. See PR for more details: shirou/gopsutil#1951
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.