# Error loading Vsphere Dashboards

**URL:** <https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [December 15, 2019, 9:11pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925 "2019-12-15T21:11:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard\_N](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@richard\_N](https://discuss.elastic.co/u/richard_N)\
**Post date:** [December 15, 2019, 9:11pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/1 "2019-12-15T21:11:45Z")

</div>

It won't let me load the vsphere dashboards in 7.5. The plugin works fine but get unsupported media type using API and UI just says sorry there was an error.

Has anyone else been able to get this to load?

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 16, 2019, 1:09pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/2 "2019-12-16T13:09:16Z")

</div>

Hey @richard_N,

Thanks for reporting this issue, does it fail to be installed in Kibana, or it fails to display data once installed? Maybe an screenshot helps here.

---

<div class="post-metadata">

**Author:** ![richard\_N](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@richard\_N](https://discuss.elastic.co/u/richard_N)\
**Post date:** [December 16, 2019, 1:24pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/3 "2019-12-16T13:24:54Z")

</div>

It doesn't load in Kibana, just says this.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/c/9c1e266ab64f8bb42ab7cc9a1e961cb36c8ceb8c.png)

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 16, 2019, 1:32pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/4 "2019-12-16T13:32:37Z")

</div>

Oh, dashboards cannot be directly installed as saved objects in Kibana, you need to use `metricbeat setup` command, you can find instructions here: [https://www.elastic.co/guide/en/beats/metricbeat/7.5/load-kibana-dashboards.html](https://www.elastic.co/guide/en/beats/metricbeat/7.5/load-kibana-dashboards.html)

---

<div class="post-metadata">

**Author:** ![richard\_N](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@richard\_N](https://discuss.elastic.co/u/richard_N)\
**Post date:** [December 16, 2019, 2:20pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/5 "2019-12-16T14:20:07Z")

</div>

Loading dashboards (Kibana must be running and reachable)  
Exiting: Failed to import dashboard: Failed to load directory /root/go/src/github.com/elastic/beats/metricbeat/kibana/7/dashboard:  
error loading /root/go/src/github.com/elastic/beats/metricbeat/kibana/7/dashboard/metricbeat-vsphere-host.json: failed to parse field [dashboard.kibanaSavedObjectMeta.searchSourceJSON] of type [text] in document with id 'dashboard:0ebd0be0-f049-11e9-aaf3-15199b632da7'. Preview of field's value: '{filter=, query={query=, language=kuery}}'. Response: {"objects":[{"id":"0ebd0be0-f049-11e9-aaf3-15199b632da7","type":"dashboard","error":{"message":"failed to parse field [dashboard.kibanaSavedObjectMeta.searchSourceJSON] of type [text] in document with id 'dashboard:0ebd0be0-f049-11e9-aaf3-15199b632da... (truncated)  
error loading /root/go/src/github.com/elastic/beats/metricbeat/kibana/7/dashboard/metricbeat-vsphere-vm.json: failed to parse field [dashboard.kibanaSavedObjectMeta.searchSourceJSON] of type [text] in document with id 'dashboard:8a2d1540-f049-11e9-aaf3-15199b632da7'. Preview of field's value: '{filter=, query={query=, language=kuery}}'. Response: {"objects":[{"id":"8a2d1540-f049-11e9-aaf3-15199b632da7","type":"dashboard","error":{"message":"failed to parse field [dashboard.kibanaSavedObjectMeta.searchSourceJSON] of type [text] in document with id 'dashboard:8a2d1540-f049-11e9-aaf3-15199b632da... (truncated)

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 16, 2019, 4:25pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/6 "2019-12-16T16:25:44Z")

</div>

It seems you are trying to install dashboards from source. Dashboards in the repository are not in the format expected by kibana, they need to be "built", for that run these commands from the `metricbeat` directory:

```auto
make update
./metricbeat setup --dashboards -E setup.dashboards.directory=./_meta/kibana.generated

```

Btw, I am thinking now that there is no dashboard for vsphere so far, are you creating your own dashboard? 🤔

---

<div class="post-metadata">

**Author:** ![richard\_N](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@richard\_N](https://discuss.elastic.co/u/richard_N)\
**Post date:** [December 16, 2019, 6:17pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/7 "2019-12-16T18:17:05Z")

</div>

Right, there's 2 in the repo already that i was trying to get working. They are here.

/root/go/src/github.com/elastic/beats/metricbeat/module/vsphere/\_meta/kibana/7/dashboard  
-rw-r--r-- 1 root root 24429 Dec 16 09:05 metricbeat-vsphere-vm.json  
-rw-r--r-- 1 root root 38597 Dec 16 09:05 metricbeat-vsphere-host.json

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 16, 2019, 7:13pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/8 "2019-12-16T19:13:51Z")

</div>

Oh, great to see that you are working on new dashboards 🙂

How did you generate these json dashboards? Dashboards in the beats repository should be exported from kibana using `metricbeat export dashboard`.

After `make update` could you find the dashboards in `./_meta/kibana.generated`? Does `metricbeat setup` work with these dashboards?

---

<div class="post-metadata">

**Author:** ![richard\_N](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@richard\_N](https://discuss.elastic.co/u/richard_N)\
**Post date:** [December 16, 2019, 10:06pm UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/9 "2019-12-16T22:06:12Z")

</div>

Yes, that worked. Thanks for the tip.

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 17, 2019, 10:18am UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/10 "2019-12-17T10:18:40Z")

</div>

@richard_N it'd be great if you could contribute your dashboards to beats 🙂

---

<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, 2020, 10:18am UTC](https://discuss.elastic.co/t/error-loading-vsphere-dashboards/211925/11 "2020-01-14T10:18:50Z")

</div>

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