{% extends "base.html" %} {% block title %}Home — Tusk{% endblock %} {% block content %}
{{ greeting }}, {{ user_name }} — {% if stats.errors_today == 0 and stats.pipelines_today > 0 %}your data is healthy.{% endif %} {% if stats.errors_today == 0 and stats.pipelines_today == 0 %}let's run some queries.{% endif %} {% if stats.errors_today > 0 %}{{ stats.errors_today }} {% if stats.errors_today == 1 %}query{% else %}queries{% endif %} failed today.{% endif %}
{% if stats.pipelines_today > 0 %} {{ stats.pipelines_today }} {% if stats.pipelines_today == 1 %}query{% else %}queries{% endif %} in the last 24h, {{ stats.errors_today }} {% if stats.errors_today == 1 %}error{% else %}errors{% endif %}. {% else %} No activity in the last 24h yet. {% endif %}
New query
Queries this week
{{ stats.queries_week }}
{{ stats.queries_by_day | sum }} in the last 7 days
{% set max_q = stats.queries_by_day | max %} {% set max_q_safe = max_q if max_q > 0 else 1 %}
Avg query latency
{{ stats.avg_latency_ms }}ms
across last 24h
{% set max_l = stats.latency_by_hour | max %} {% set max_l_safe = max_l if max_l > 0 else 1 %}
Active connections
{{ stats.active_connections }} / {{ stats.max_connections }}
{{ stats.by_type_label }}
{% set total = stats.active_connections %} {% if total == 0 %} {% else %} {% set step = 200 // total %} {% for i in range(total) %} {% endfor %} {% endif %}
Recent queries
{% if recent_queries %} {% for q in recent_queries %}
{{ q.connection_name }}
{{ q.sql_preview }}{% if q.sql|length > 120 %}…{% endif %}
{% if q.row_count is not none %}{{ q.row_count }} rows · {% endif %}{{ q.execution_time_ms }}ms
{% endfor %} {% else %}
No queries yet — head to Studio to run one.
{% endif %}
AI suggestions
Loading suggestions…
{% endblock %} {% block scripts %} {% endblock %}