You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be happy if anyone has any recommendations and feedback or other possible solution and would be happy to help implement such solution. Are there any plans to develop this receiver?
The text was updated successfully, but these errors were encountered:
Adding process metrics for Mac.
Currently, the hostmetrics process metrics receiver is only implemented for windows and linux.
Link to tracking Issue: Issue #17863
---------
Co-authored-by: Alex Boten <[email protected]>
Co-authored-by: Antoine Toulme <[email protected]>
Component(s)
receiver/hostmetrics
Is your feature request related to a problem? Please describe.
We want to collect process metrics for Mac. Currently the hostmetrics process metrics receiver is only implemented for windows and linux.
Describe the solution you'd like
Receiver that supports collecting process metrics in mac using shirou/gopsutil/process package.
Reference
Limitations
error reading parent pid for process "launchd" (pid 1): invalid pid 0
which seems to be related to this open issue.Describe alternatives you've considered
I created a Fork of the repository that can collect Mac process metrics and handles the limitation like so:
bad call to lsof: exit status 1
- seems like the process has 'root' as the process ownermissing txt data returned by lsof;
- seems like the process have a memory address in DEVICE or NAME params (runninglsof -p <PID>
in the terminal)Instead of Exe() or Cwd(), we can use Cmdline() and regex to cut the used path in the command. The issue is it's not always perfect:
Additional context
Would be happy if anyone has any recommendations and feedback or other possible solution and would be happy to help implement such solution. Are there any plans to develop this receiver?
The text was updated successfully, but these errors were encountered: