{# host_agent history-graph widget — the host-view utilization chart, embedded on a dashboard. Fills the (resizable) panel; epoch-ms linear axis so no Chart.js date adapter is needed. #} {% set has_data = host and (series.cpu_pct or series.mem_used_pct or series.disk_root) %} {% if not host %}
No host selected. Edit this dashboard and pick a host for this graph.
{% elif not has_data %}
No agent metrics for {{ host.name }} in the last {{ hours }}h yet.
{% else %}
{# Name the host the graph represents (panel title is generic) + a live range toggle that re-requests this widget without entering edit mode. #}
{% if session.user_id %} {{ host.name }} {% else %} {{ host.name }} {% endif %} {% for opt in [1, 6, 24] %} {% endfor %}
{% endif %}