How to monitor a specific process using metricbeats?

7.1k views Asked by At

I have the following basic metricbeats config

metricbeat.modules:
- module: system
  metricsets:
    - cpu
    - filesystem
    - memory
    - network
    - process
  enabled: true
  period: 10s
  processes: ['.*']
  cpu_ticks: false

Now I want to monitor only a specific process with process id (pid) = 27056. I know that I have to do some modifications under the "processes" field of the above config file. Can any please help on how to proceed further?

1

There are 1 answers

1
David Hall On

You can monitor the processes which match any of a list of expressions you pass. For example, this reports on all processes running with nginx, java or python in the command line.

 processes: ['nginx','java', 'python']