# Autodiscovery hints in docker swarm

**URL:** https://discuss.elastic.co/t/autodiscovery-hints-in-docker-swarm/172664
**Category:** Beats
**Created:** [March 17, 2019, 9:36am UTC](https://discuss.elastic.co/t/autodiscovery-hints-in-docker-swarm/172664 "2019-03-17T09:36:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![atmosx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atmosx/32/42183_2.png) [@atmosx](https://discuss.elastic.co/u/atmosx)
#### Post date: [March 17, 2019, 9:36am UTC](https://discuss.elastic.co/t/autodiscovery-hints-in-docker-swarm/172664/1 "2019-03-17T09:36:53Z")

</div>

Hello, I have setup a docker swarm network. I have setup a metricbeat per host, at node level. Now I need to fetch data from prometheus exporters accessible through swarm overlay networks and I'm planning to use the [hints based auto-discovery](https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-autodiscover-hints.html) option. So metricbeats will need access services accessible through the swarm network only. How should I approach this? One metricsbeat instance per node or one metricsbeat instance running on the swarm manager node?

Thanks!

---

<div class="post-metadata">

### Author: ![atmosx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atmosx/32/42183_2.png) [@atmosx](https://discuss.elastic.co/u/atmosx)
#### Post date: [March 17, 2019, 2:18pm UTC](https://discuss.elastic.co/t/autodiscovery-hints-in-docker-swarm/172664/2 "2019-03-17T14:18:32Z")

</div>

I believe the following answer resolves it: [How to use Metricbeat to monitor Docker Swarm containers, hosts and external services](https://discuss.elastic.co/t/how-to-use-metricbeat-to-monitor-docker-swarm-containers-hosts-and-external-services/160037)

The accepted solution is to run metricsbeat in global mode with a set of paths as mounted volumes: [https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html#\_volume\_mounted\_configuration](https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html#_volume_mounted_configuration)

---

<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: [April 14, 2019, 4:18pm UTC](https://discuss.elastic.co/t/autodiscovery-hints-in-docker-swarm/172664/3 "2019-04-14T16:18:36Z")

</div>

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