Import Heartbeat Dashboard is trying to connect Elasticsearch client on http://127.0.0.1:9200

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

heartbeat.monitors:

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:

Array of hosts to connect to.

hosts: ["elkquest.unx.sas.com:9200"]
template.name: "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 http://127.0.0.1:9200: dial tcp 127.0.0.1:9200: getsockopt: connection refused
    Exiting

  • 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: https://github.com/elastic/uptime-contrib. 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.