# Capturing metrics from all nodes in a docker swarm

**URL:** https://discuss.elastic.co/t/capturing-metrics-from-all-nodes-in-a-docker-swarm/235445
**Category:** Beats
**Tags:** docker
**Created:** [June 3, 2020, 2:21am UTC](https://discuss.elastic.co/t/capturing-metrics-from-all-nodes-in-a-docker-swarm/235445 "2020-06-03T02:21:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![robsv](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@robsv](https://discuss.elastic.co/u/robsv)
#### Post date: [June 3, 2020, 2:21am UTC](https://discuss.elastic.co/t/capturing-metrics-from-all-nodes-in-a-docker-swarm/235445/1 "2020-06-03T02:21:58Z")

</div>

I have a Docker Swarm with a total of 4 nodes (1 leader, 3 workers), and I've been using Metricbeat to capture system metrics (CPU, etc.). Metricbeat is installed on all four nodes, but outside of Docker. Each node sends metrics to a separate ES index. I can see some docker metrics on the lead node (where ELK is also installed), but I want to see docker metrics for all of the nodes. How do I do this?

1. Do I just enable docker metrics on the other nodes? If so, do I need to send all the information to one single ES index?
2. Do I need to redo the installation and install Metricbeat with docker? Does this go on all four nodes?  
Any help greatly appreciated!

---

<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: [July 1, 2020, 2:22am UTC](https://discuss.elastic.co/t/capturing-metrics-from-all-nodes-in-a-docker-swarm/235445/2 "2020-07-01T02:22:00Z")

</div>

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