# Metricbeat not working on Docker desktop for windows

**URL:** <https://discuss.elastic.co/t/metricbeat-not-working-on-docker-desktop-for-windows/340459>\
**Category:** Beats\
**Tags:** docker, windows, metricbeat\
**Created:** [August 9, 2023, 12:56pm UTC](https://discuss.elastic.co/t/metricbeat-not-working-on-docker-desktop-for-windows/340459 "2023-08-09T12:56:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BEIIKS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beiiks/32/124472_2.png) [@BEIIKS](https://discuss.elastic.co/u/BEIIKS)\
**Post date:** [August 9, 2023, 12:56pm UTC](https://discuss.elastic.co/t/metricbeat-not-working-on-docker-desktop-for-windows/340459/1 "2023-08-09T12:56:09Z")

</div>

Hi there, my first issue here 😃  
Im a rookie in ELK, and today I try to use metricbeat to monitor my cpu, ram and etc...  
ofc that I work with docker desktop as its in development stage so, therefore I understand that I need to change metricbeat's configuration which I did, I change the host property from:

```auto
 hosts: ["unix:///var/run/docker.sock"]

```

to:

```auto
hosts: ["tcp://host.docker.internal:2375"]

```

Beyond that, unfortunately it didn't work, those are the logs of metricbeat:

```auto
Exiting: error in autodiscover provider settings: error setting up docker autodiscover provider: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

```

as you can see, it tries to connect to unix:///var/run/docker.sock despite that I change it, for double check I also log into the container and see the yml file at /usr/share/metricbeat/metricbeat.yml and it config correctly

thank you very much

---

<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:** [September 6, 2023, 2:56pm UTC](https://discuss.elastic.co/t/metricbeat-not-working-on-docker-desktop-for-windows/340459/2 "2023-09-06T14:56:15Z")

</div>

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