{% extends "base.html" %}
{% block title %}Telemetry{% endblock %}
{% block content %}
Telemetry
From {{ attune_home }}/telemetry/usage.jsonl.
Events
{{ '{:,}'.format(telemetry.total_requests) }}
Total spend
${{ '%.2f'|format(telemetry.total_cost) }}
Reported savings
${{ '%.2f'|format(telemetry.total_savings) }}
By workflow (top 20)
{% if telemetry.by_workflow %}
| Workflow | Events | Cost |
{% for name, count, cost in telemetry.by_workflow %}
{{ name }} | {{ count }} | ${{ '%.4f'|format(cost) }} |
{% endfor %}
{% else %}
No telemetry events yet.
{% endif %}
Last 14 days
{% if telemetry.by_day %}
| Day | Events | Cost |
{% for day, count, cost in telemetry.by_day %}
{{ day }} | {{ count }} | ${{ '%.4f'|format(cost) }} |
{% endfor %}
{% else %}
No daily activity in the last 14 days.
{% endif %}
{% if telemetry.last_event_at %}
Last event recorded: {{ telemetry.last_event_at }}
{% endif %}
{# US-6 three-panel receipt: reach + freshness + spend together. #}
Reach — latest complete snapshot
{% if reach.latest_complete %}
Snapshot {{ reach.latest_complete.date }}
observed {{ reach.latest_complete.taken_at }}
| Package | last_day | last_week | last_month |
{% for pkg, stats in reach.latest_complete.packages.items() %}
{{ pkg }} | {{ stats.last_day }} | {{ stats.last_week }} | {{ stats.last_month }} |
{% endfor %}
{% else %}
No complete reach snapshot yet.
{% endif %}
{% if reach.newer_incomplete %}
⚠ Newer snapshot {{ reach.newer_incomplete.date }} is
INCOMPLETE (missing:
{% for pkg in reach.newer_incomplete.missing %}{{ pkg }}{% if not loop.last %}, {% endif %}{% endfor %})
— it does not replace the complete snapshot above.
{% endif %}
Freshness — usage.jsonl last write
{% if freshness.exists %}
Last write: {{ freshness.last_write_at }}
({{ '%.1f'|format(freshness.age_hours) }}h ago)
{% if freshness.stale %}
⚠ STALE — no usage.jsonl write in over 48 hours.
{% else %}
Fresh (under the 48-hour threshold).
{% endif %}
{% else %}
⚠ usage.jsonl not found — freshness unknown (treated as stale).
{% endif %}
{% include "_spend_alarm.html" %}
Short-term memory
Context the memory hooks inject each session, from
{{ attune_home }}/telemetry/memory_events.jsonl.
This is measured cost (tokens added to context) — not
a savings figure.
{% if memory_summary and memory_summary.total_events %}
Tokens injected (est.)
{{ '{:,}'.format(memory_summary.total_est_tokens) }}
Events
{{ '{:,}'.format(memory_summary.total_events) }}
Avg tokens / session
{{ '{:,.1f}'.format(memory_summary.per_session_avg_tokens) }}
| Event | Fires | Tokens (est.) |
{% for name, row in memory_summary.by_event.items() %}
{{ name }} | {{ row.n }} | {{ '{:,}'.format(row.est_tokens) }} |
{% endfor %}
{% if memory_signal %}
Estimated intervention signal
{{ memory_signal.caption }}
Rule surfacings (upper bound)
{{ '{:,}'.format(memory_signal.rule_surfacings) }}
Distinct rules
{{ '{:,}'.format(memory_signal.distinct_rules) }}
{% if memory_signal.top_rules %}
| Rule | Surfaced |
{% for rule, count in memory_signal.top_rules %}
{{ rule }} | {{ count }} |
{% endfor %}
{% endif %}
{% endif %}
{% if memory_feedback %}
Noise signal
{{ memory_feedback.caption }}
Findings rejected
{{ '{:,}'.format(memory_feedback.rejected) }}
Findings stashed
{{ '{:,}'.format(memory_feedback.findings_written) }}
Rejection rate
{{ '{:.1%}'.format(memory_feedback.rejection_rate) }}
{% if memory_feedback.by_source %}
| Source | Rejected |
{% for src, count in memory_feedback.by_source.items() %}
{{ src }} | {{ count }} |
{% endfor %}
{% endif %}
{% endif %}
{% else %}
No memory events yet.
{% endif %}
Dashboard interactions (this session)
In-memory counters since the dashboard process started. Resets on restart; no PII, no disk write.
Pill clicks
{{ '{:,}'.format(interaction_totals.get('pill_clicks', 0)) }}
Recommendation card clicks
{{ '{:,}'.format(interaction_totals.get('rec_card_clicks', 0)) }}
Scope picker changes
{{ '{:,}'.format(interaction_totals.get('scope_picker_changes', 0)) }}
{% if interaction_top.pill_clicks %}
Top pills clicked
| Workflow | Clicks |
{% for name, count in interaction_top.pill_clicks %}
{{ name }} | {{ count }} |
{% endfor %}
{% endif %}
{% if interaction_top.rec_card_clicks %}
Recommendation cards by kind
| Kind | Clicks |
{% for kind, count in interaction_top.rec_card_clicks %}
{{ kind }} | {{ count }} |
{% endfor %}
{% endif %}
{% if interaction_top.scope_picker_changes %}
Scope picker changes by workflow
| Workflow | Changes |
{% for name, count in interaction_top.scope_picker_changes %}
{{ name }} | {{ count }} |
{% endfor %}
{% endif %}
{% if not interaction_top.pill_clicks and not interaction_top.rec_card_clicks and not interaction_top.scope_picker_changes %}
No dashboard interactions recorded yet this session.
{% endif %}
{% endblock %}