{% extends "dashboard/base.html" %} {% block title %}Analytics — {{ dashboard_title }}{% endblock %} {% block page_title %}System Analytics{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

System Analytics

{{ agent_names|length }} Agents • {{ summary.total_executions }} Executions • {{ "%.1f"|format(summary.success_rate) }}% Success

{% for d, label in [(7, '7d'), (30, '30d')] %} {{ label }} {% endfor %}
Launch Chat

Configured Agents

smart_toy

{{ agent_names|length }}

Ready

Total Executions

terminal

{{ summary.total_executions }}

{{ "%.0f"|format(summary.success_rate) }}%

Avg Latency

timer

{{ "%.0f"|format(summary.avg_duration_ms) }}ms

Avg

Total Cost

payments

{{ format_cost(summary.total_cost_usd) }}

{{ days }}d
{% include "dashboard/_analytics_charts.html" %}
{% if cost_by_agent %}

Agent Utilization

{{ days }}-day period
{% for row in cost_by_agent %} {% endfor %}
Agent Executions Avg Duration Total Cost Success Rate
smart_toy
{{ agent_names.get(row.agent_id, row.agent_id) }}
{{ row.execution_count }} {% if row.avg_duration_ms %}{{ format_duration(row.avg_duration_ms) }}{% else %}—{% endif %} {{ format_cost(row.total_cost_usd) }} {% if row.execution_count > 0 %} {{ "%.0f"|format((row.success_count / row.execution_count) * 100) }}% {% else %} {% endif %}
{% endif %}
{% endblock %}