Error loading Vsphere Dashboards

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?

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.

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

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

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)

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:

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? :thinking:

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

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

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?

Yes, that worked. Thanks for the tip.

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

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