{# plugins/traefik/templates/traefik/widget.html — the dashboard Routers widget (#5254): a verdict, routers in trouble with why, then the busiest healthy ones, under one header. Only routers Traefik still reports. A certificate shows on the router it serves (TLS column, days left); when Traefik's API can't say which hosts a router serves, the expiring certificates are listed after the routers instead. #} {% from "_macros.html" import status_dot %} {% if not total %}
| Router | Req/s | Bandwidth | p95 | {% if domains_known %}TLS | {% endif %}
|---|---|---|---|---|
| {{- status_dot(r.state) -}} {{ r.name.split('@')[0] }} {%- if r.why and r.state != "ok" %}{{ r.why }} {%- if r.since_before %}, all of the last 24 h{% elif r.since %}, started {{ r.since|ago }}{% endif %}{% endif %} | {% if m.request_rate is none %}—{% else %}{{ "%.2f"|format(m.request_rate) }}{% endif %} | {% if m.response_bytes_rate is none %}—{% else %}{{ m.response_bytes_rate|rate }}{% endif %} | {%- if m.latency_p95_ms is none %}—{% else %}{{ "%.0f"|format(m.latency_p95_ms) }} ms{% endif -%} | {% if domains_known %}{%- if r.cert %}{{ cert_left(r.cert.days) }}{% else %}—{% endif -%} | {% endif %}