web: display friendly names instead of IDs of HAProxy servers and backends

This commit is contained in:
Timothée Floure 2022-02-21 11:42:50 +01:00
parent a68e896291
commit d1d31ca883
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -57,7 +57,6 @@
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Status</th>
<th>algo</th>
@ -66,7 +65,6 @@
<tbody>
<%= for entry <- Map.get(haproxy_stats, "Backend") do %>
<tr>
<td><%= entry["iid"] %></td>
<td><%= entry["pxname"] %></td>
<td><%= entry["status"] %></td>
<td><%= entry["algo"] %></td>
@ -79,7 +77,6 @@
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Status</th>
<th>Mode</th>
@ -89,8 +86,7 @@
<tbody>
<%= for entry <- Map.get(haproxy_stats, "Server") do %>
<tr>
<td><%= entry["iid"] %></td>
<td><%= entry["pxname"] %></td>
<td><%= entry["pxname"] %>/<%= entry["svname"] %></td>
<td><%= entry["status"] %></td>
<td><%= entry["mode"] %></td>
<td><%= entry["addr"] %></td>