forked from 3wordchant/capsul-flask
metrics are working!!!
This commit is contained in:
31
capsulflask/templates/display-metric.html
Normal file
31
capsulflask/templates/display-metric.html
Normal file
@ -0,0 +1,31 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %}{{ vm['id'] }} - {{ metric }} - {{ duration }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row half-margin">
|
||||
<h1>{{ vm['id'] }} - {{ metric }} - {{ duration }}</h1>
|
||||
</div>
|
||||
<div class="row third-margin">
|
||||
{% for d in durations %}
|
||||
<a href="/metrics/html/{{ metric }}/{{ vm['id'] }}/{{ d }}">
|
||||
{% if d == duration %}
|
||||
<span class="code">{{ d }}</span>
|
||||
{% else %}
|
||||
{{ d }}
|
||||
{% endif %}
|
||||
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div>
|
||||
<h1>cpu</h1>
|
||||
<img src="/metrics/{{ metric }}/{{ vm['id'] }}/{{ duration }}/l"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block pagesource %}/templates/display-metric.html{% endblock %}
|
Reference in New Issue
Block a user