Fail load dashboard to kibana with apm-server setup

1:
Loaded index template
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Elasticsearch: Error importing directory /opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86_64/kibana: No dashboards to import. Please make sure the /opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86_64/kibana/5.x directory contains a dashboard directory.

2: i copy default directory/dashboard to 5.x/dashboard the other error is out put

[root@soc apm-server-6.0.0-rc1-linux-x86_64]# ./apm-server setup
Loaded index template
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Elasticsearch: Error importing directory /opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86_64/kibana: Failed to import dashboard: Failed to load directory /opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86_64/kibana/5.x/dashboard:
error loading /opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86_64/kibana/5.x/dashboard/apm-dashboards.json: Failed to load /opt/elasticsearch-apm/apm-server-6.0.0-rc1-linux-x86_64/kibana/5.x/dashboard/apm-dashboards.json under /.kibana/dashboard/apm-dashboards: couldn't load json. Error: 400 Bad Request: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [version]"}],"type":"mapper_parsing_exception","reason":"failed to parse [version]","caused_by":{"type":"number_format_exception","reason":"multiple points"}},"status":400}. Response body: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [version]"}],"type":"mapper_parsing_exception","reason":"failed to parse [version]","caused_by":{"type":"number_format_exception","reason":"multiple points"}},"status":400}

1 Like

jep, same with the debian package

Hi!

Sorry about that. Our documentation is a bit ahead of the latest release. That should be fixed shortly.
In the mean time, to get dashboard setup with the APM Server alpha1, run the following command from the directory of a local checkout of the APM Server git repository:

curl -XPOST http://localhost:5601/api/kibana/dashboards/import -H 'Content-type:application/json' -H 'kbn-xsrf:true' -d @./_meta/kibana/default/dashboard/apm-dashboards.json

If you're on 5.6, you need to do this instead:

curl -XPOST http://localhost:5601/api/kibana/dashboards/import -H 'Content-type:application/json' -H 'kbn-xsrf:true' -d @./_meta/kibana/5.x/dashboard/apm-dashboards.json

Let me know if that helps!

Nice. Thanks for this

We updated the docs to be correct again. This should be the right approach: https://www.elastic.co/guide/en/apm/get-started/current/install-and-run.html#kibana-dashboards

i will try again.
thanks.

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