{% extends 'syspanel/base.html' %} {% load i18n parse_date sizeformat %} {% block title %}Tenant Usage Overview{% endblock %} {% block page_header %} {# to make searchable false, just remove it from the include statement #} {% include "horizon/common/_page_header.html" with title=_("System Panel Overview") %} {% endblock page_header %} {% block syspanel_main %}

Select a month to query its usage:

{{ dateform.date }}

CPU

RAM

Disk

{% trans "Active Instances" %}: {{ usage.total_active_instances }} {% trans "This month's VCPU-Hours" %}: {{ usage.total_cpu_usage|floatformat }} {% trans "This month's GB-Hours" %}: {{ usage.total_disk_usage|floatformat }}

{% if usage.instances %}
{% trans "Download CSV" %} »

{% trans "Tenant Usage" %}: {{ tenant_id }}

{% for instance in instances %} {% if instance.ended_at %} {% else %} {% endif %} {% endfor %}
{% trans "ID" %} {% trans "Name" %} {% trans "User" %} {% trans "VCPUs" %} {% trans "Ram Size" %} {% trans "Disk Size" %} {% trans "Flavor" %} {% trans "Uptime" %} {% trans "Status" %}
{{ instance.id }} {{ instance.name }} {{ instance.user_id }} {{ instance.vcpus }} {{ instance.ram_size|mbformat }} {{ instance.disk_size }}GB {{ instance.flavor }} {{ instance.uptime_at|timesince }} {{ instance.state|capfirst }}
{% endif %} {% endblock %}