How to monitor system processes using metricbeat and docker?

  docker, elastic-stack, kibana, metricbeat

I want to monitor my systems processes on kibana with metricbeat, and get its data such as number of Running, Sleeping, Stopped and Zombie processes.
Using metricbeat on Docker, the only processes it manages to log are the few running in the container itself, though my system is running at least 400 processes at any time!
This is result of top:
enter image description here

and here is system.yml file:

- module: system
  metricsets:
    - cpu             # CPU usage
    - load            # CPU load averages
    - memory          # Memory usage
    - network         # Network IO
    - process         # System processes
    - process_summary # Process summary

  enabled: true
  period: 30s
  processes: ['.*']

  system.hostfs: "/hostfs"

How do I manage to get metricbeat container to monitor the main processes(those in my local system and not the ones in metricbeat container)?

Source: Docker Questions

LEAVE A COMMENT