# Docker Metricbeat 7.6.0 doesn't send Host processes

**URL:** https://discuss.elastic.co/t/docker-metricbeat-7-6-0-doesnt-send-host-processes/257684
**Category:** Beats
**Tags:** docker, metricbeat
**Created:** [December 4, 2020, 5:22pm UTC](https://discuss.elastic.co/t/docker-metricbeat-7-6-0-doesnt-send-host-processes/257684 "2020-12-04T17:22:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gregbk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregbk/32/80289_2.png) [@gregbk](https://discuss.elastic.co/u/gregbk)
#### Post date: [December 4, 2020, 5:22pm UTC](https://discuss.elastic.co/t/docker-metricbeat-7-6-0-doesnt-send-host-processes/257684/1 "2020-12-04T17:22:10Z")

</div>

Hello ELK community!

I tried to run a basic setup with ELK version 7.6.0

Metricbeat.yml

```auto
metricbeat.config:
  modules:
    path: ${path.config}/modules.d/*.yml
    # Reload module configs as they change:
    reload.enabled: false

metricbeat.autodiscover:
  providers:
    - type: docker
      hints.enabled: true

metricbeat.modules:
- module: system
  metricsets:
    - "cpu"
    - "load"
    - "filesystem"
    - "fsstat"
    - "memory"
    - "network"
    - "process"
    - "core"
    - "diskio"
    - "socket"
  period: 5s
  enabled: true
  processes: ['.*']
  cpu.metrics: ["percentages"]
  core.metrics: ["percentages"]
  process.cgroups.enabled: false

- module: docker
  metricsets:
    - "container"
    - "cpu"
    - "diskio"
    - "healthcheck"
    - "info"
    - "image"
    - "memory"
    - "network"
  hosts: ["unix:///var/run/docker.sock"]
  period: 10s
  enabled: true

output.elasticsearch:
  hosts: ${ELASTIC_HOST}
  username: ${ELASTIC_USER}
  password: ${ELASTIC_PASSWORD}
  ssl.verification_mode: ${SSL_VERIFICATION_MODE} # option: [none|full] , put none for local install as localhost/elastic hostname is invalid in cert
 
#logging.level: debug

```

And docker-compose.yml

```auto
version: "3.7"

services:

  metricbeat:
    container_name: metricbeat
    image: docker.elastic.co/beats/metricbeat:7.6.0
    user: root
    volumes:
      - ./config/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro
      - /var/run/docker.sock:/var/run/docker.sock
      - /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
      - /proc:/hostfs/proc:ro
      - /:/hostfs:ro
    environment:
      - ELASTIC_HOST=https://${ELASTIC_URL}:443
      - ELASTIC_USER=${ELASTIC_USER}
      - ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
      - SSL_VERIFICATION_MODE=${SSL_VERIFICATION_MODE}
    command: ["-strict.perms=false"] # disable strict permission checks
    network_mode: host
    cap_add:
      - sys_ptrace
      - dac_read_search

```

In kibana, metricbeat index, filter process.name:exist only list logs for process.name=metricbeat.  
Same in HOST SYSTEM dashboard, I can see only 1 process metricbeat. I can see only metrics fine line system RAM, CPU, disk.

Something I missed in my config?

Thank you for your help!  
Greg.

---

<div class="post-metadata">

### Author: ![gregbk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregbk/32/80289_2.png) [@gregbk](https://discuss.elastic.co/u/gregbk)
#### Post date: [December 16, 2020, 6:00pm UTC](https://discuss.elastic.co/t/docker-metricbeat-7-6-0-doesnt-send-host-processes/257684/2 "2020-12-16T18:00:15Z")

</div>

I found my mistake:  
I forgot to add the container CMD `-e -system.hostfs=/hostfs`  
Like stated in the documentation:

```auto
docker run \
  --mount type=bind,source=/proc,target=/hostfs/proc,readonly \ 
  --mount type=bind,source=/sys/fs/cgroup,target=/hostfs/sys/fs/cgroup,readonly \ 
  --mount type=bind,source=/,target=/hostfs,readonly \ 
  --net=host \ 
  docker.elastic.co/beats/metricbeat:7.10.1 -e -system.hostfs=/hostfs

```

---

<div class="post-metadata">

### Author: ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)
#### Post date: [December 17, 2020, 1:38am UTC](https://discuss.elastic.co/t/docker-metricbeat-7-6-0-doesnt-send-host-processes/257684/3 "2020-12-17T01:38:26Z")

</div>

Thanks for posting your solution here!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 14, 2021, 3:38am UTC](https://discuss.elastic.co/t/docker-metricbeat-7-6-0-doesnt-send-host-processes/257684/4 "2021-01-14T03:38:34Z")

</div>

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