{% macro status_class(status) -%} {% if status == "healthy" %}status-ok{% elif status == "degraded" %}status-warn{% else %}status-fail{% endif %} {%- endmacro %} {% if not partial %} AgentFlow Admin

AgentFlow Admin

Read-only production summary for health, traffic, cache, and tenant key usage. Reload the page to refresh; the previous auto-refresh exposed the admin key in the DOM (Codex audit p2_2 #6).

{% endif %}

System Summary

{{ health.status }}

{{ health.components|length }} components checked

QPS Last Minute

{{ "%.2f"|format(qps_1m) }}

Derived from `api_sessions` over the trailing 60s.

Configured Keys

{{ configured_keys }}

Tracked admin-managed API keys.

Cache

{{ cache_stats.backend }}

Entity TTL {{ cache_stats.entity_ttl_seconds }}s, rate limits via {{ cache_stats.rate_limit_backend }}.

Health Components

{% for component in health.components %} {% endfor %}
Component Status Message
{{ component.name }} {{ component.status }} {{ component.message }}

Database Pool

Pool Size {{ db_pool.pool_size }}
Read In Use {{ db_pool.read_in_use }}
Read Available {{ db_pool.read_available }}
Write Locked {{ db_pool.write_locked }}

Tenant Key Usage

{% for item in key_usage %} {% endfor %}
Tenant Name RPM 24h Requests Rotation
{{ item.tenant }} {{ item.name }} {{ item.rate_limit_rpm }} {{ item.requests_last_24h }} {{ item.rotation_phase }}
{% if not partial %}
{% endif %}