Metricbeat: Filtering processes based on Command Line parameters

I have two questions:

  1. We have multiple java processes that we would like to connect metrics for. Each of these processes has a custom name as a part of the command line. Since the process name for each of them is "java.exe", it is hard to know which metrics are for which process. Is there any way we can tag the collected metrics to have a specific parameter we specify in the command line?
  2. Would the following enable the collection of metrics for all java processes?
  • name: system
    metricsets: [process]
    processes: ['^java.exe$']

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.