When setting up an Elastic cluster as part of Sophie installation, it is possible to also set up ElasticHQ dashboard for monitoring purposes. Please follow the instructions below.

Requirements:

Python 3.4+

Supported Elasticsearch versions: 2.x, 5.x, 6.x

Basic Installation
Download and unpack the zip file content into /var/lib/elastichq

$: git clone https://github.com/ElasticHQ/elasticsearch-HQ /var/lib/elastichq

Navigate to  /var/lib/elastichq and install (Run everything as root using PIP3)

$: sudo -H pip3 install -r requirements.txt

Launch the application

$ sudo python3 application.py

Browse to the application

http://localhost:5000

Post Installation

Create Service File

$ sudo vi /lib/systemd/system/elastichq.service

Add the following content into it

[Unit]

Description=Elastic HQ

After=multi-user.target

Conflicts=getty@tty1.service

[Service]

Type=simple

ExecStart=/usr/bin/python3 /var/lib/elastichq/application.py

StandardInput=tty-force

User=root

StandardOutput=journal

[Install]

WantedBy=multi-user.target

Reload the systemctl daemon

$ sudo systemctl daemon-reload

Enable the service

$ sudo systemctl enable elastichq.service

Start the service

$ sudo systemctl start elastichq.service

Check service status

$ sudo systemctl status elastichq.service

For further information please also refer to: http://docs.elastichq.org/installation.html

Did this answer your question?