{% extends "_base.html" %} {% block title %}Agent Status — {{ _brand_name }}{% endblock %} {% block content %} {#- Compute totals for AI summary -#} {% set ns = namespace(total=0, disconnected=0, partial=0) %} {% for account in accounts %} {% set ns.total = ns.total + 1 %} {% set agent_details = account.agent_details.data.agent[0] %} {% set status = agent_details.connection_status %} {% set is_running = agent_details.status | lower in ['running', 'connected', 'active'] %} {% set connected_count = 0 %} {% if status.alertManagerConnection %}{% set connected_count = connected_count + 1 %}{% endif %} {% if status.grafanaEnabled %}{% set connected_count = connected_count + 1 %}{% endif %} {% if status.karpenterEnabled %}{% set connected_count = connected_count + 1 %}{% endif %} {% if status.logsConnection %}{% set connected_count = connected_count + 1 %}{% endif %} {% if status.opencostConnection %}{% set connected_count = connected_count + 1 %}{% endif %} {% if not is_running %} {% set ns.disconnected = ns.disconnected + 1 %} {% elif connected_count < 5 %} {% set ns.partial = ns.partial + 1 %} {% endif %} {% endfor %}
I checked {{ ns.total }} account{{ 's' if ns.total != 1 else '' }}. {% if ns.disconnected > 0 or ns.partial > 0 %} {% if ns.disconnected > 0 %}{{ ns.disconnected }} agent{{ 's' if ns.disconnected != 1 else '' }} disconnected{% endif %}{% if ns.disconnected > 0 and ns.partial > 0 %} and {% endif %}{% if ns.partial > 0 %}{{ ns.partial }} ha{{ 've' if ns.partial != 1 else 's' }} partial connectivity{% endif %} — details below. {% else %} All agents are running healthy. {% endif %}
| Account | Status | Connections | Last Connected |
|---|---|---|---|
| {{ account.account_name }} | ● | {{ connected_count }}/5 | {{ agent_details.last_connected_at }} UTC |
{{ account.account_name }}
{% if not is_running %}Agent {{ agent_details.status | lower | capitalize }} since {{ agent_details.last_connected_at }} UTC. No data is being collected.
Version: {{ agent_details.version }} · {{ agent_details.k8s_provider }}/{{ agent_details.k8s_version }}
{% endif %} {% if disconnected_connections | length > 0 %}{% if is_running %}{{ disconnected_connections | length }} integration{{ 's' if disconnected_connections | length != 1 else '' }} down — cost and scaling data may be incomplete.{% endif %} Disconnected: {{ disconnected_connections | join(', ') }}
{% endif %} {% if not is_running %}Check agent{% else %}Reconnect integrations{% endif %} →✓ All {{ accounts|length }} account{{ 's' if accounts|length != 1 else '' }} are running healthy