{% extends "base.html" %} {% from "_macros.html" import trace_table %} {% block title %}Dashboard · garrison{% endblock %} {% block content %}

Dashboard

Every app you own. Tokens include the injection classifier's scans. Times are UTC.

Traces, last {{ days }} days{{ totals.total|num }} {{ totals.blocked|num }} blocked · {{ totals.error|num }} error
Tokens, last {{ days }} days{{ totals.tokens|num }} {{ totals.token_input|num }} in · {{ totals.token_output|num }} out
Est. cost, last {{ days }} days{{ totals.cost_usd|usd(2) }} {% if totals.unpriced %}excludes {{ totals.unpriced|num }} trace{{ '' if totals.unpriced == 1 else 's' }} with no price{% endif %}
Tokens today{{ today.tokens|num }} {{ today.total|num }} traces

Tokens by day

{% if bars.peak %} {% for b in bars.bars %}{{ b.day }}: {{ b.value|num }} tokens{% endfor %} {% for l in bars.labels %}{{ l.label }}{% endfor %}

Peak {{ bars.peak|num }} tokens in a day

{% else %}

No tokens in this window.

{% endif %}

Apps

{% for a in apps %} {% else %}{% endfor %}
AppTracesBlockedErrors TokensEst. costLast trace
{{ a.name }} {{ a.traces|num }}{{ a.blocked|num }}{{ a.errors|num }} {{ a.tokens|num }}{{ a.cost_usd|usd(4) }}{% if a.unpriced %}(excl. {{ a.unpriced|num }} unpriced){% endif %} {{ a.last|dt if a.last else '—' }}
No apps yet. Create one.

Tokens by model

{% for m in by_model %} {% else %}{% endfor %}
ModelTracesInOutEst. cost
{{ m.model }}{{ m.traces|num }} {{ m.token_input|num }}{{ m.token_output|num }} {{ m.cost_usd|usd(4) }}{% if m.unpriced %}(excl. {{ m.unpriced|num }} unpriced){% endif %}
No traces.

Tokens by day and app

{% for d in by_day %} {% else %}{% endfor %}
DayTokensBy app
{{ d.day.isoformat() }}{{ d.tokens|num }} {% for name, tok in d.apps|dictsort %}{{ name }} {{ tok|num }}{{ ' · ' if not loop.last }}{% endfor %}
No traces.

Recent traces, all apps

{% if recent %}{{ trace_table(recent, None, show_app=True) }} {% else %}

No traces yet. Point an app at this service with GARRISON_URL and GARRISON_KEY.

{% endif %}
{% endblock %}