{# SPDX-License-Identifier: AGPL-3.0-only #} Nitter Instance Health

Nitter Instance Uptime & Health

About

Last Updated {{last_updated}} UTC.

{% for host in instances -%} {% endfor -%}
Instance Healthy Ping Average RSS Version Points
{{host.domain}} {% if host.healthy -%} ✅ {% else -%} ❌ {% endif -%} {% if host.recent_pings|length > 0 -%} {% set height = 57 -%} {% set width = 182 -%} {% set amount = host.recent_pings|length -%} {% set width_bar = width / amount -%} {% set offset = 5 -%} {% set error_size = height / 3 %} {% if host.ping_max and host.ping_min -%} {# only one entry, so max = min => step_size would be 0 #} {% if host.ping_max == host.ping_min -%} {% set step_size = 5/(height-offset) -%} {% else -%} {% set step_size = (host.ping_max - host.ping_min)/(height-offset) -%} {% endif -%} {% else %} {# no valid entries, only nulls #} {% set step_size = 5/(height-offset) -%} {% endif %} {# #} {% if host.ping_avg and host.ping_min -%} {% set avg_pos = (height-(host.ping_avg - host.ping_min )/step_size) - offset -%} Average {% endif -%} {% for ping in host.recent_pings -%} {% if ping -%} {% set height_bar = (ping - host.ping_min )/step_size + offset -%} {% set color_bar = "#a09df2" -%} {% else %} {% set height_bar = error_size -%} {% set color_bar = "#cc0000" -%} {% endif %} {{ping | default(value="unhealthy") }} {% endfor -%} {% endif %} {{host.ping_avg}} {% if host.rss -%} ✅ {% else %} ❌ {% endif %} {{host.version}} {{host.points}}