From d1d31ca883707204ae22be1cd30229b1207b44bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Mon, 21 Feb 2022 11:42:50 +0100 Subject: [PATCH] web: display friendly names instead of IDs of HAProxy servers and backends --- changelog.md | 2 ++ lib/ha_handler/web/templates/index.html.eex | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index 8d0ea3c..b8296c8 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,8 @@ * haproxy: fix invalid deduplication / merging of stat entries. * pgsql: refactoring, wire mode of operation (primary, secondary). +* control: route PGSQL traffic to primary server(s). +* web: display friendly names instead of IDs of HAProxy servers and backends. # 2022-02-19 - v0.1.1 diff --git a/lib/ha_handler/web/templates/index.html.eex b/lib/ha_handler/web/templates/index.html.eex index a65766d..4d2bbf4 100644 --- a/lib/ha_handler/web/templates/index.html.eex +++ b/lib/ha_handler/web/templates/index.html.eex @@ -57,7 +57,6 @@ - @@ -66,7 +65,6 @@ <%= for entry <- Map.get(haproxy_stats, "Backend") do %> - @@ -79,7 +77,6 @@
# Name Status algo
<%= entry["iid"] %> <%= entry["pxname"] %> <%= entry["status"] %> <%= entry["algo"] %>
- @@ -89,8 +86,7 @@ <%= for entry <- Map.get(haproxy_stats, "Server") do %> - - +
# Name Status Mode
<%= entry["iid"] %><%= entry["pxname"] %><%= entry["pxname"] %>/<%= entry["svname"] %> <%= entry["status"] %> <%= entry["mode"] %> <%= entry["addr"] %>