{% extends "base.html" %} {% block title %}Metrics Explorer — AgentPulse{% endblock %} {% block content %}
Metrics Explorer
Browse every metric by category and entity. Same baseline band and version comparison as Drift Investigation.
{% set qs %}&category={{ category }}&entity={{ entity }}{% if task_type %}&task_type={{ task_type }}{% endif %}{% if vcmp.explicit %}{% for n in vcmp.selected %}&version={{ n }}{% endfor %}{% endif %}{% if request.args.get('db') %}&db={{ request.args.get('db') }}{% endif %}{% endset %}
Time Range {{ range_display }} {{ tz_label }}
{% for key,label,_ in ranges %} {{ label }} {% endfor %}
Pick from a calendar
Version{{ vcmp.label }}
Show
{% for n in vcmp.ver_options %}{% endfor %}
Show all
{{ run_count }} runs
{% if run_count == 0 %}
No runs in this range.
{% else %} {% set keep %}&range={{ rp }}{% if task_type %}&task_type={{ task_type }}{% endif %}{% if vcmp.explicit %}{% for n in vcmp.selected %}&version={{ n }}{% endfor %}{% endif %}{% if request.args.get('db') %}&db={{ request.args.get('db') }}{% endif %}{% endset %}
{% for c in cats %} {{ cat_labels.get(c, c) }} {% endfor %}
{% if category == 'path' and entity == 'Routes' %}
All routes · {{ route_cards|length }} distinct · {{ routes_total }} runs
{% for r in route_cards %}
{{ r.pct }}% {{ r.count }}× of {{ routes_total }} · {{ r.length }} agent{{ '' if r.length==1 else 's' }} {% if r.canonical %}usual{% endif %}
{% endfor %}
{% else %}
Within range Drift Normal range (p10–p90) Version marker Threshold
{% endif %}
Custom metrics — {{ cat_labels.get(category, category) }}×
Applies to the current entity scope ({{ entity if entity not in ('','*') else 'all entities' }}).
{% if customs_here %}
Your derived metrics here
{% for cm in customs_here %}
{{ cm.name }} = {{ cm.a }} {{ cm.op }} {{ cm.b }}
{% endfor %} {% endif %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}