{% load redis_metrics_filters %} {% load static %} {% comment %} NOTE: This template gets a `metric_history` context that's organized like so: metric_history = { 'periods': ['y:2012', 'y:2013', 'y:2014'] 'data': [ { 'slug': 'bar', 'values': [1, 2, 3] }, { 'slug': 'foo', 'values': [4, 5, 6] }, } {% endcomment %}
Metric | {% for period in metric_history.periods %}{{ period }} | {% endfor %}
---|---|
{{ item.slug }} |
{% for value in item.values %}
{{ value|default:"-" }} | {% endfor %}