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:
-
type: http
List or urls to query
urls:
Configure task schedule
schedule: '@every 10s'
#-------------------------- 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