{% extends "templates/base.html" %} {% set active_page = "" %} {% block title %}HAProxy • Statistics{% endblock %} {% block head %} {% endblock %} {% block breadcrumb %}{% endblock %} {% block content %}

HAProxy Statistics

{% if stats %}
Total Frontends

{{ stats|length }}

Total Connections

{{ stats|map(attribute='conn_tot')|sum }}

4xx Errors

{{ stats|map(attribute='4xx_errors')|sum }}

5xx Errors

{{ stats|map(attribute='5xx_errors')|sum }}

{% for stat in stats %} {% endfor %}
Frontend Name Server Name 4xx Errors 5xx Errors Bytes In (MB) Bytes Out (MB) Total Connections
{{ stat.frontend_name }} {{ stat.server_name }} {% if stat['4xx_errors'] > 0 %} {{ stat['4xx_errors'] }} {% else %} {{ stat['4xx_errors'] }} {% endif %} {% if stat['5xx_errors'] > 0 %} {{ stat['5xx_errors'] }} {% else %} {{ stat['5xx_errors'] }} {% endif %} {{ "%.2f"|format(stat.bytes_in_mb) }} {{ "%.2f"|format(stat.bytes_out_mb) }} {{ stat.conn_tot }}
{% else %}
No statistics available
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}