{% extends "base.html" %} {% block title %}Dashboards · sqldash{% endblock %} {% block actions %}
{% if dashboards | length == 1 %} + Explore {% else %} {% endif %}
{% endblock %} {% block content %}

Dashboards

Serving {{ serve_label }} — every dashboard is a single YAML file.

{% if dashboards or broken %}
{% if repos %} {% for repo in repos %} {% set repo_dashboards = dashboards | selectattr("repo", "equalto", repo) | list %} {% set repo_broken = broken | selectattr("repo", "equalto", repo) | list %} {% if repo_dashboards or repo_broken %} {% with group_id = "d:" + repo, group_label = repo, group_count = (repo_dashboards | length + repo_broken | length) ~ " dashboard" ~ ("s" if repo_dashboards | length + repo_broken | length != 1 else "") %} {% include "_folder.html" %} {% endwith %}
{% for d in repo_dashboards %}{% include "_dash_row.html" %}{% endfor %} {% for b in repo_broken %}{% include "_broken_row.html" %}{% endfor %}
{% endif %} {% endfor %} {% else %} {% for d in dashboards %}{% include "_dash_row.html" %}{% endfor %} {% for b in broken %}{% include "_broken_row.html" %}{% endfor %} {% endif %}
{% else %}

No dashboards found in this directory.

Create one with the button above, run sqldash init --demo, or add a *.yaml dashboard file.

{% endif %} {% if metrics or metric_errors %}

Metrics

The semantic layer — governed definitions agents can query via sqldash mcp.

{% if repos %} {% for repo in repos %} {% set repo_metrics = metrics | selectattr("repo", "equalto", repo) | list %} {% set repo_metric_errors = metric_errors | selectattr("repo", "equalto", repo) | list %} {% if repo_metrics or repo_metric_errors %} {% with group_id = "m:" + repo, group_label = repo, group_count = (repo_metrics | length) ~ " metric" ~ ("s" if repo_metrics | length != 1 else "") %} {% include "_folder.html" %} {% endwith %}
{% for e in repo_metric_errors %}{% include "_metric_error_row.html" %}{% endfor %} {% for m in repo_metrics %}{% include "_metric_row.html" %}{% endfor %}
{% endif %} {% endfor %} {% else %} {% for e in metric_errors %}{% include "_metric_error_row.html" %}{% endfor %} {% for m in metrics %}{% include "_metric_row.html" %}{% endfor %} {% endif %}
{% endif %} {% if dashboards | length > 1 %}

Explore data

Choose a dashboard to use its connections and saved queries.

{% endif %} {% endblock %} {% block scripts %} {% endblock %}