2013-05-02 12:34:20 +00:00
|
|
|
<div id="graph_wrapper{{id}}" class="graph_wrapper">
|
2015-06-01 10:23:13 +00:00
|
|
|
<form action="{{ pathPrefix }}/api/query_range" method="GET" class="query_form form-inline">
|
2015-01-14 16:56:03 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-10">
|
2015-06-12 14:46:22 +00:00
|
|
|
<textarea rows="1" placeholder="Expression (press Shift+Enter for newlines)" name="expr" id="expr{{id}}" class="form-control expression_input" data-provide="typeahead" autocomplete="off">{{expr}}</textarea>
|
2015-01-14 16:56:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-2">
|
|
|
|
<div class="eval_stats pull-right"></div>
|
2015-06-01 10:23:13 +00:00
|
|
|
<img src="{{ pathPrefix }}/static/img/ajax-loader.gif" class="spinner" alt="ajax_spinner">
|
2013-04-26 14:50:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-12 14:46:22 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-10">
|
|
|
|
<input class="btn btn-primary execute_btn" type="submit" value="Execute" name="submit">
|
|
|
|
<select class="form-control expression_select" name="insert_metric">
|
|
|
|
<option value="">- insert metric at cursor -</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-01-14 16:56:03 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="error alert alert-danger"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-07-13 17:30:51 +00:00
|
|
|
<!--
|
|
|
|
TODO: Convert this to Bootstrap navbar. This requires Javascript
|
|
|
|
refresh.
|
|
|
|
-->
|
2015-01-14 16:56:03 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div role="tabpanel">
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
|
|
<li role="presentation"><a href="#graph{{id}}" aria-controls="graph{{id}}" role="tab" data-toggle="tab">Graph</a></li>
|
|
|
|
<li role="presentation" class="active"><a href="#console{{id}}" aria-controls="console{{id}}" role="tab" data-toggle="tab">Console</a></li>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div role="tabpanel" class="tab-pane graph_container reload" id="graph{{id}}">
|
2015-01-22 12:27:35 +00:00
|
|
|
<div class="clearfix">
|
2015-01-14 16:56:03 +00:00
|
|
|
<!-- Extracted to force grouped inputs. -->
|
|
|
|
<input type="hidden" name="range">
|
2015-01-22 12:27:35 +00:00
|
|
|
<div class="prometheus_input_group range_input pull-left">
|
2015-01-14 16:56:03 +00:00
|
|
|
<button
|
|
|
|
class="btn btn-default pull-left"
|
|
|
|
type="button"
|
|
|
|
name="dec_range"
|
|
|
|
title="Shrink the time range.">
|
|
|
|
<i class="glyphicon glyphicon-minus"></i>
|
|
|
|
</button>
|
|
|
|
<input
|
|
|
|
class="pull-left input"
|
|
|
|
id="range_input{{id}}"
|
|
|
|
title="Time range of graph"
|
|
|
|
type="text"
|
|
|
|
name="range_input"
|
|
|
|
size="3"
|
|
|
|
value="{{range_input}}">
|
|
|
|
<button
|
|
|
|
class="btn btn-default pull-left"
|
|
|
|
type="button"
|
|
|
|
name="inc_range"
|
|
|
|
title="Grow the time range.">
|
|
|
|
<i class="glyphicon glyphicon-plus"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2013-07-13 17:30:51 +00:00
|
|
|
|
2015-01-14 16:56:03 +00:00
|
|
|
<!-- Extracted to force grouped inputs. -->
|
|
|
|
<input type="hidden" name="end">
|
2015-01-22 12:27:35 +00:00
|
|
|
<div class="prometheus_input_group pull-left">
|
2013-07-13 17:30:51 +00:00
|
|
|
|
2015-01-14 16:56:03 +00:00
|
|
|
<button
|
|
|
|
class="btn btn-default pull-left"
|
|
|
|
type="button"
|
|
|
|
name="dec_end"
|
|
|
|
title="Rewind the end time.">
|
|
|
|
<i class="glyphicon glyphicon-backward"></i>
|
|
|
|
</button>
|
2013-07-13 17:30:51 +00:00
|
|
|
|
2015-01-14 16:56:03 +00:00
|
|
|
<input
|
|
|
|
class="pull-left date_input input"
|
|
|
|
id="end{{id}}"
|
|
|
|
title="End time of graph"
|
|
|
|
placeholder="Until"
|
|
|
|
data-format="yyyy-MM-dd"
|
|
|
|
type="text"
|
|
|
|
name="end_input"
|
|
|
|
size="16"
|
|
|
|
value="{{end}}">
|
2013-05-02 12:34:20 +00:00
|
|
|
|
2015-01-14 16:56:03 +00:00
|
|
|
<button
|
|
|
|
class="btn btn-default pull-left"
|
|
|
|
type="button"
|
|
|
|
name="inc_end"
|
|
|
|
title="Advance the end time.">
|
|
|
|
<i class="glyphicon glyphicon-forward"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2013-07-13 17:30:51 +00:00
|
|
|
|
2015-01-22 12:27:35 +00:00
|
|
|
<div class="prometheus_input_group pull-left">
|
2015-01-14 16:56:03 +00:00
|
|
|
<input class="input" title="Resolution in seconds" placeholder="Res. (s)" type="text" name="step_input" id="step_input{{id}}" value="{{step_input}}" size="6">
|
|
|
|
<input type="hidden" name="step">
|
|
|
|
</div>
|
2013-07-13 17:30:51 +00:00
|
|
|
|
2015-01-22 12:27:35 +00:00
|
|
|
<div class="prometheus_input_group pull-left">
|
2015-01-14 16:56:03 +00:00
|
|
|
<button type="button" class="btn btn-default stacked_btn">
|
|
|
|
<i class="glyphicon"></i> stacked
|
|
|
|
</button>
|
|
|
|
<input type="hidden" name="stacked" value="{{stacked}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-26 14:50:59 +00:00
|
|
|
|
2015-02-06 15:20:46 +00:00
|
|
|
<div class="graph_area"></div>
|
2015-01-14 16:56:03 +00:00
|
|
|
<div class="legend"></div>
|
|
|
|
</div>
|
|
|
|
<div role="tabpanel" class="tab-pane active console reload" id="console{{id}}">
|
|
|
|
<table class="table table-condensed table-hover console_table">
|
|
|
|
<thead>
|
|
|
|
<th>Element</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr><td colspan="2"><i>no data</i></td></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-07-01 12:47:43 +00:00
|
|
|
</div>
|
2013-07-24 00:18:49 +00:00
|
|
|
</div>
|
2013-04-02 17:14:02 +00:00
|
|
|
</div>
|
2013-04-26 14:50:59 +00:00
|
|
|
</form>
|
2013-04-02 17:14:02 +00:00
|
|
|
</div>
|