{% extends "django_observatory/base.html" %}{% load observatory %} {% block title %}Metrics{% endblock %}{% block heading %}Metrics{% endblock %} {% block sub %}Built-in and application metrics (metrics.increment / gauge / histogram / timer){% endblock %} {% block tools %}{% include "django_observatory/_range.html" %}{% endblock %} {% block content %}

Metrics

{% for m in metrics %}
{{ m.name }} {{ m.kind }}
{% empty %}

No metrics recorded yet.

{% endfor %}
{% if selected %}
Samples
{{ total.count }}
{% if selected.kind == 'counter' %}
Total
{{ total.sum|floatformat:"-2" }}
{% else %}
Average
{{ total.avg|floatformat:2 }}
Min / max
{{ total.min|floatformat:2 }} / {{ total.max|floatformat:2 }}
{% endif %}
{% include "django_observatory/_chart.html" with title=selected.name id="c-met" data=chart %} {% if distribution %}{% include "django_observatory/_chart.html" with title="Distribution" id="c-metd" data=distribution %}{% endif %}

By labels

{% for s in series %}{% endfor %}
LabelsSamplesSumAvgP95Max
{{ s.labels }}{{ s.count }}{{ s.sum|floatformat:"-2" }}{{ s.avg|floatformat:2 }}{% if s.p95 != None %}{{ s.p95|floatformat:2 }}{% else %}–{% endif %}{% if s.max != None %}{{ s.max|floatformat:2 }}{% else %}–{% endif %}
{% else %}

Select a metric.

{% endif %}
{% endblock %}