The Real-time Dashboard is a web application that collects live metrics from your load balancers and displays them. You can also perform actions like disabling servers.
Use your system's package manager to install the dashboard package onto your HAProxy Enterprise server:
$ # On Debian/Ubuntu $ sudo apt-get install hapee-2.7r1-lb-dashboard
$ # On CentOS/RedHat/Oracle/Photon OS $ sudo yum install hapee-2.7r1-lb-dashboard
$ # On SUSE $ sudo zypper install hapee-2.7r1-lb-dashboard
$ # On FreeBSD $ sudo pkg install hapee-2.7r1-lb-dashboard
This installs the following components:
Configuration that exposes a new endpoint within HAProxy Enterprise at port 9022. When a request arrives at this port, HAProxy Enterprise dispatches it to a Lua module that returns statistics for the dashboard to collect.
Folder that contains the Lua module that generates HAProxy Enterprise statistics. It contains:
dashboard.luac- Lua module for statistics.
dashboard-config.lua- Configuration file that defines a cluster of HAProxy Enterprise nodes from which to gather statistics.
Folder that contains the web application for the dashboard.
Copy the folder
/opt/hapee-2.7/dashboard/dashboardto your web server to host it on an IP address and port of your choosing. Consult your web server's instructions for hosting static files.
To give you an example of hosting the dashboard yourself, you can use the following Python commands to start a rudimentary web server directly from the dashboard directory:
$ cd /opt/hapee-2.7/dashboard/dashboard $ python3 -m http.server 8000
Open the Real-time Dashboard at port 8000 using your web browser.
You must configure the dashboard to fetch metrics data from HAProxy Enterprise. You have two options:
Configure the Lua module
Configure the Dashboard Gateway
Next upLua Module