Import Heartbeat Dashboard is trying to connect Elasticsearch client on

Hi all,

I am trying to import Heartbeat Dashboard. Steps performed:
-Installed Elasticsearch and Kibana on Host1. This is working Fine
-Installed Heartbeat5.6 on Host2 . Heartbeat monitoring is working fine

  • Edited heartbeat.yml

    Configure monitors


#-------------------------- Elasticsearch output ------------------------------

Array of hosts to connect to.

hosts: [""] "heartbeat"
template.path: "heartbeat.template.json"
template.overwrite: true

  • restarted Heartbeat. I couldn't see the default dashboard so i tried to import dashboard with command /usr/share/heartbeat/scripts/import_dashboards
    This is giving error:
    fail to create the Elasticsearch loader: Error creating Elasticsearch client: Couldn't connect to any of the configured Elasticsearch hosts, errors: 1 error: Get dial tcp getsockopt: connection refused

  • The elasticsearch host should connect to http://Host1:9200.

Please suggest where I am going wrong

Is there a reason you're using such an old version of heartbeat? Can you upgrade to the lastest version?

In the latest versions the heartbeat dashboards are now located here: See the README for instructions on installing the dashboard.

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