Is there a way to differentiate Linux processes by process arguments?

I have many Python processes, like

  • python task1
  • python task2
    … and so on…

Is there a way to force NewRelic to show them as different processes and not as instances of the same “python” process?
[I don’t want to go with ugly workaround by creating tons of symlinks with different names for Python]

TIA, Vitaly

If you have the Infrastructure agent installed as opposed to the server agent, then in the newrelic-infra.yml, add the following,
strip_command_line: false
Then restart the infra agent. Hopefully that should resolve it for you.

Let me know how it goes.

5 Likes

Thank you! Unfortunately we haven’t migrated to the infrastructure agent yet.
It seems be one more reason to do it.

1 Like