2013-05-02 05:34:20 -07:00
|
|
|
<div id="graph_wrapper{{id}}" class="graph_wrapper">
|
2019-02-07 13:18:09 -08:00
|
|
|
<form class="query_form">
|
|
|
|
<div class="form-row">
|
2015-01-14 08:56:03 -08:00
|
|
|
<div class="col-lg-10">
|
2018-10-17 01:54:16 -07: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" spellcheck="false">{{expr}}</textarea>
|
2015-01-14 08:56:03 -08:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-2">
|
2019-02-07 13:18:09 -08:00
|
|
|
<div class="eval_stats float-right"></div>
|
2017-03-03 12:36:06 -08:00
|
|
|
<img src="{{ pathPrefix }}/static/img/ajax-loader.gif?v={{ buildVersion }}" class="spinner" alt="ajax_spinner">
|
2013-04-26 07:50:59 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-07 13:18:09 -08:00
|
|
|
<div class="form-inline">
|
|
|
|
<input class="btn btn-primary execute_btn" type="submit" value="Execute" name="submit">
|
|
|
|
<select class="custom-select form-control expression_select" name="insert_metric">
|
|
|
|
<option value="">- insert metric at cursor -</option>
|
|
|
|
</select>
|
2015-06-12 07:46:22 -07:00
|
|
|
</div>
|
2019-02-07 13:18:09 -08:00
|
|
|
<div class="form-row">
|
2015-01-14 08:56:03 -08:00
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="error alert alert-danger"></div>
|
2019-01-31 09:03:50 -08:00
|
|
|
<div class="warning alert alert-warning"></div>
|
2015-01-14 08:56:03 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-07-13 10:30:51 -07:00
|
|
|
<!--
|
|
|
|
TODO: Convert this to Bootstrap navbar. This requires Javascript
|
|
|
|
refresh.
|
|
|
|
-->
|
2019-02-07 13:18:09 -08:00
|
|
|
<div class="form-row">
|
2015-01-14 08:56:03 -08:00
|
|
|
<div class="col-lg-12">
|
2019-02-07 13:18:09 -08:00
|
|
|
<div class="list-group" role="tabpanel">
|
2015-01-14 08:56:03 -08:00
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
2019-02-07 13:18:09 -08:00
|
|
|
<li class="nav-item" role="presentation"><a class="nav-link" href="#graph{{id}}" aria-controls="graph{{id}}" role="tab" data-toggle="tab">Graph</a></li>
|
|
|
|
<li class="nav-item" role="presentation" class="active"><a class="nav-link" href="#console{{id}}" aria-controls="console{{id}}" role="tab" data-toggle="tab">Console</a></li>
|
2015-01-14 08:56:03 -08:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div role="tabpanel" class="tab-pane graph_container reload" id="graph{{id}}">
|
2015-01-22 04:27:35 -08:00
|
|
|
<div class="clearfix">
|
2015-01-14 08:56:03 -08:00
|
|
|
<!-- Extracted to force grouped inputs. -->
|
2015-01-22 04:27:35 -08:00
|
|
|
<div class="prometheus_input_group range_input pull-left">
|
2015-01-14 08:56:03 -08:00
|
|
|
<button
|
2019-02-07 13:18:09 -08:00
|
|
|
class="btn btn-light pull-left"
|
2015-01-14 08:56:03 -08:00
|
|
|
type="button"
|
|
|
|
name="dec_range"
|
|
|
|
title="Shrink the time range.">
|
|
|
|
<i class="glyphicon glyphicon-minus"></i>
|
2019-02-07 13:18:09 -08:00
|
|
|
</button><!--
|
|
|
|
--><input
|
2015-01-14 08:56:03 -08:00
|
|
|
class="pull-left input"
|
|
|
|
id="range_input{{id}}"
|
|
|
|
title="Time range of graph"
|
|
|
|
type="text"
|
|
|
|
name="range_input"
|
|
|
|
size="3"
|
2019-02-07 13:18:09 -08:00
|
|
|
value="{{range_input}}"><!--
|
|
|
|
--><button
|
|
|
|
class="btn btn-light pull-left"
|
2015-01-14 08:56:03 -08:00
|
|
|
type="button"
|
|
|
|
name="inc_range"
|
|
|
|
title="Grow the time range.">
|
|
|
|
<i class="glyphicon glyphicon-plus"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2013-07-13 10:30:51 -07:00
|
|
|
|
2015-01-14 08:56:03 -08:00
|
|
|
<!-- Extracted to force grouped inputs. -->
|
2015-01-22 04:27:35 -08:00
|
|
|
<div class="prometheus_input_group pull-left">
|
2013-07-13 10:30:51 -07:00
|
|
|
|
2015-01-14 08:56:03 -08:00
|
|
|
<button
|
2019-02-07 13:18:09 -08:00
|
|
|
class="btn btn-light pull-left"
|
2015-01-14 08:56:03 -08:00
|
|
|
type="button"
|
|
|
|
name="dec_end"
|
|
|
|
title="Rewind the end time.">
|
|
|
|
<i class="glyphicon glyphicon-backward"></i>
|
2019-02-07 13:18:09 -08:00
|
|
|
</button><!--
|
2013-07-13 10:30:51 -07:00
|
|
|
|
2019-02-07 13:18:09 -08:00
|
|
|
--><input
|
2015-01-14 08:56:03 -08:00
|
|
|
class="pull-left date_input input"
|
|
|
|
id="end{{id}}"
|
2017-09-15 19:38:29 -07:00
|
|
|
title="End time of graph (UTC)"
|
2015-01-14 08:56:03 -08:00
|
|
|
placeholder="Until"
|
|
|
|
data-format="yyyy-MM-dd"
|
|
|
|
type="text"
|
|
|
|
name="end_input"
|
|
|
|
size="16"
|
2019-02-07 13:18:09 -08:00
|
|
|
value="{{end}}"><!--
|
2013-05-02 05:34:20 -07:00
|
|
|
|
2019-02-07 13:18:09 -08:00
|
|
|
--><button
|
|
|
|
class="btn btn-light pull-left"
|
2015-01-14 08:56:03 -08:00
|
|
|
type="button"
|
|
|
|
name="inc_end"
|
|
|
|
title="Advance the end time.">
|
|
|
|
<i class="glyphicon glyphicon-forward"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
2013-07-13 10:30:51 -07:00
|
|
|
|
2015-01-22 04:27:35 -08:00
|
|
|
<div class="prometheus_input_group pull-left">
|
2015-01-14 08:56:03 -08: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">
|
|
|
|
</div>
|
2013-07-13 10:30:51 -07:00
|
|
|
|
2015-01-22 04:27:35 -08:00
|
|
|
<div class="prometheus_input_group pull-left">
|
2019-02-07 13:18:09 -08:00
|
|
|
<button type="button" class="btn btn-light stacked_btn">
|
2015-01-14 08:56:03 -08:00
|
|
|
<i class="glyphicon"></i> stacked
|
|
|
|
</button>
|
|
|
|
<input type="hidden" name="stacked" value="{{stacked}}">
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-26 07:50:59 -07:00
|
|
|
|
2015-02-06 07:20:46 -08:00
|
|
|
<div class="graph_area"></div>
|
2015-01-14 08:56:03 -08:00
|
|
|
<div class="legend"></div>
|
|
|
|
</div>
|
|
|
|
<div role="tabpanel" class="tab-pane active console reload" id="console{{id}}">
|
2018-10-26 05:16:40 -07:00
|
|
|
<div class="clearfix">
|
|
|
|
<!-- Extracted to force grouped inputs. -->
|
|
|
|
<div class="prometheus_input_group pull-left">
|
|
|
|
|
|
|
|
<button
|
2019-02-07 13:18:09 -08:00
|
|
|
class="btn btn-light pull-left"
|
2018-10-26 05:16:40 -07:00
|
|
|
type="button"
|
|
|
|
name="dec_moment"
|
|
|
|
title="Rewind the moment.">
|
|
|
|
<i class="glyphicon glyphicon-backward"></i>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<input
|
|
|
|
class="pull-left date_input input"
|
|
|
|
id="moment{{id}}"
|
|
|
|
title="Moment of console (UTC)"
|
|
|
|
placeholder="Moment"
|
|
|
|
data-format="yyyy-MM-dd"
|
|
|
|
type="text"
|
|
|
|
name="moment_input"
|
|
|
|
size="16"
|
|
|
|
value="{{moment}}">
|
|
|
|
|
|
|
|
<button
|
2019-02-07 13:18:09 -08:00
|
|
|
class="btn btn-light pull-left"
|
2018-10-26 05:16:40 -07:00
|
|
|
type="button"
|
|
|
|
name="inc_moment"
|
|
|
|
title="Advance the moment.">
|
|
|
|
<i class="glyphicon glyphicon-forward"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-07 13:18:09 -08:00
|
|
|
<table class="table table-sm table-hover console_table">
|
2015-01-14 08:56:03 -08:00
|
|
|
<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 05:47:43 -07:00
|
|
|
</div>
|
2013-07-23 17:18:49 -07:00
|
|
|
</div>
|
2013-04-02 10:14:02 -07:00
|
|
|
</div>
|
2019-02-07 13:18:09 -08:00
|
|
|
<div class="form-row">
|
2016-07-31 07:30:23 -07:00
|
|
|
<div class="col-lg-12 text-right">
|
|
|
|
<a name="remove" href="#">Remove Graph</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-26 07:50:59 -07:00
|
|
|
</form>
|
2013-04-02 10:14:02 -07:00
|
|
|
</div>
|