Differenciate processes by their arguments


(Guido) #1

I know that topbet (gosigar) gets the process name from /proc/:pid/stat in Linux.

I have different nodejs processes in the same box:

$ ps -ef | grep node
myuser 29334 29332  0 12:43 ?        00:00:00 /usr/bin/node /opt/myapp/process1
myuser 29340 29337  0 12:45 ?        00:00:00 /usr/bin/node /opt/myapp/process2

and all of them are "node" for topbeat. Is there any way to get the arguments (opt/myapp/process1 in the example) to differenciate the processes with a human-readable identifier? The pid is not very user friendly.

Thanks


(Monica Sarbu) #2

Starting with the next version, Topbeat would be able to export the entire command line that we used for starting the process. Here is the pull request: https://github.com/elastic/beats/pull/749 and it's already merged to master. The next release will be available at the end of this month.


(Guido) #3

Ok, thanks Monica.


(system) #4