# Metricbeats vsphere

**URL:** https://discuss.elastic.co/t/metricbeats-vsphere/200891
**Category:** Beats
**Tags:** metricbeat
**Created:** [September 24, 2019, 2:40pm UTC](https://discuss.elastic.co/t/metricbeats-vsphere/200891 "2019-09-24T14:40:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jlim0930](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jlim0930](https://discuss.elastic.co/u/jlim0930)
#### Post date: [September 24, 2019, 2:40pm UTC](https://discuss.elastic.co/t/metricbeats-vsphere/200891/1 "2019-09-24T14:40:40Z")

</div>

can we list multiple vsphere hosts in the hosts field?

currently I have hosts: ["[https://host1/sdk](https://host1/sdk)", "[https://host2/sdk](https://host2/sdk)"] but it is only collecting information from host1 and nothing from host2

if we are wanting to collect from multiple vspheres can this be done from a single instance of metricbeats?

---

<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: [September 26, 2019, 3:44am UTC](https://discuss.elastic.co/t/metricbeats-vsphere/200891/2 "2019-09-26T03:44:10Z")

</div>

Hello, thanks for posting your question here. I will look at the code to see if it supports more than one host. For now, if you want to monitor multiple hosts, you can try vsphere.yml like:

```auto
- module: vsphere
  enabled: true
  metricsets: ["datastore", "host", "virtualmachine"]
  period: 10s
  hosts: ["https://host1/sdk"]
- module: vsphere
  enabled: true
  metricsets: ["datastore", "host", "virtualmachine"]
  period: 10s
  hosts: ["https://host2/sdk"]

```

---

<div class="post-metadata">

### Author: ![jlim0930](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@jlim0930](https://discuss.elastic.co/u/jlim0930)
#### Post date: [September 27, 2019, 1:36pm UTC](https://discuss.elastic.co/t/metricbeats-vsphere/200891/3 "2019-09-27T13:36:26Z")

</div>

Thank you! seems to be working!

---

<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: [October 25, 2019, 1:36pm UTC](https://discuss.elastic.co/t/metricbeats-vsphere/200891/4 "2019-10-25T13:36:29Z")

</div>

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