| 1 |
<div id="graph_wrapper{{id}}" class="graph_wrapper"> |
| 2 |
<form class="query_form"> |
| 3 |
<div class="form-row"> |
| 4 |
<div class="col-lg-10"> |
| 5 |
<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> |
| 6 |
</div> |
| 7 |
<div class="col-lg-2"> |
| 8 |
<div class="eval_stats float-right"></div> |
| 9 |
<img src="{{ pathPrefix }}/classic/static/img/ajax-loader.gif?v={{ buildVersion }}" class="spinner" alt="ajax_spinner"> |
| 10 |
</div> |
| 11 |
</div> |
| 12 |
<div class="form-inline"> |
| 13 |
<input class="btn btn-primary execute_btn" type="submit" value="Execute" name="submit"> |
| 14 |
<select class="custom-select form-control expression_select" name="insert_metric"> |
| 15 |
<option value="">- insert metric at cursor -</option> |
| 16 |
</select> |
| 17 |
</div> |
| 18 |
<div class="form-row"> |
| 19 |
<div class="col-lg-12"> |
| 20 |
<div class="error alert alert-danger"></div> |
| 21 |
<div class="warning alert alert-warning"></div> |
| 22 |
</div> |
| 23 |
</div> |
| 24 |
|
| 25 |
<!-- |
| 26 |
TODO: Convert this to Bootstrap navbar. This requires JavaScript |
| 27 |
refresh. |
| 28 |
--> |
| 29 |
<div class="form-row"> |
| 30 |
<div class="col-lg-12 text-right"> |
| 31 |
<a name="remove" href="#">Remove Graph</a> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
<div class="form-row"> |
| 35 |
<div class="col-lg-12"> |
| 36 |
<div class="list-group" role="tabpanel"> |
| 37 |
<ul class="nav nav-tabs" role="tablist"> |
| 38 |
<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> |
| 39 |
<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> |
| 40 |
</ul> |
| 41 |
<div class="tab-content"> |
| 42 |
<div role="tabpanel" class="tab-pane graph_container reload" id="graph{{id}}"> |
| 43 |
<div class="clearfix"> |
| 44 |
<!-- Extracted to force grouped inputs. --> |
| 45 |
<div class="prometheus_input_group range_input pull-left"> |
| 46 |
<button |
| 47 |
class="btn btn-light pull-left" |
| 48 |
type="button" |
| 49 |
name="dec_range" |
| 50 |
title="Shrink the time range."> |
| 51 |
<i class="glyphicon glyphicon-minus"></i> |
| 52 |
</button><!-- |
| 53 |
--><input |
| 54 |
class="pull-left input" |
| 55 |
id="range_input{{id}}" |
| 56 |
title="Time range of graph" |
| 57 |
type="text" |
| 58 |
name="range_input" |
| 59 |
size="3" |
| 60 |
value="{{range_input}}"><!-- |
| 61 |
--><button |
| 62 |
class="btn btn-light pull-left" |
| 63 |
type="button" |
| 64 |
name="inc_range" |
| 65 |
title="Grow the time range."> |
| 66 |
<i class="glyphicon glyphicon-plus"></i> |
| 67 |
</button> |
| 68 |
</div> |
| 69 |
|
| 70 |
<!-- Extracted to force grouped inputs. --> |
| 71 |
<div class="prometheus_input_group pull-left"> |
| 72 |
|
| 73 |
<button |
| 74 |
class="btn btn-light pull-left" |
| 75 |
type="button" |
| 76 |
name="dec_end" |
| 77 |
title="Rewind the end time."> |
| 78 |
<i class="glyphicon glyphicon-backward"></i> |
| 79 |
</button><!-- |
| 80 |
|
| 81 |
--><input |
| 82 |
class="pull-left date_input input" |
| 83 |
id="end{{id}}" |
| 84 |
title="End time of graph (UTC)" |
| 85 |
placeholder="Until" |
| 86 |
data-format="yyyy-MM-dd" |
| 87 |
type="text" |
| 88 |
name="end_input" |
| 89 |
size="16" |
| 90 |
value="{{end}}"><!-- |
| 91 |
|
| 92 |
--><button |
| 93 |
class="btn btn-light pull-left" |
| 94 |
type="button" |
| 95 |
name="inc_end" |
| 96 |
title="Advance the end time."> |
| 97 |
<i class="glyphicon glyphicon-forward"></i> |
| 98 |
</button> |
| 99 |
</div> |
| 100 |
|
| 101 |
<div class="prometheus_input_group pull-left"> |
| 102 |
<input class="input" title="Resolution in seconds" placeholder="Res. (s)" type="text" name="step_input" id="step_input{{id}}" value="{{step_input}}" size="6"> |
| 103 |
</div> |
| 104 |
|
| 105 |
<div class="prometheus_input_group pull-left"> |
| 106 |
<button type="button" class="btn btn-light stacked_btn"> |
| 107 |
<i class="glyphicon"></i> stacked |
| 108 |
</button> |
| 109 |
<input type="hidden" name="stacked" value="{{stacked}}"> |
| 110 |
</div> |
| 111 |
</div> |
| 112 |
|
| 113 |
<div class="graph_area"></div> |
| 114 |
<div class="legend"></div> |
| 115 |
</div> |
| 116 |
<div role="tabpanel" class="tab-pane active console reload" id="console{{id}}"> |
| 117 |
<div class="clearfix"> |
| 118 |
<!-- Extracted to force grouped inputs. --> |
| 119 |
<div class="prometheus_input_group pull-left"> |
| 120 |
|
| 121 |
<button |
| 122 |
class="btn btn-light pull-left" |
| 123 |
type="button" |
| 124 |
name="dec_moment" |
| 125 |
title="Rewind the moment."> |
| 126 |
<i class="glyphicon glyphicon-backward"></i> |
| 127 |
</button> |
| 128 |
|
| 129 |
<input |
| 130 |
class="pull-left date_input input" |
| 131 |
id="moment{{id}}" |
| 132 |
title="Moment of console (UTC)" |
| 133 |
placeholder="Moment" |
| 134 |
data-format="yyyy-MM-dd" |
| 135 |
type="text" |
| 136 |
name="moment_input" |
| 137 |
size="16" |
| 138 |
value="{{moment}}"> |
| 139 |
|
| 140 |
<button |
| 141 |
class="btn btn-light pull-left" |
| 142 |
type="button" |
| 143 |
name="inc_moment" |
| 144 |
title="Advance the moment."> |
| 145 |
<i class="glyphicon glyphicon-forward"></i> |
| 146 |
</button> |
| 147 |
</div> |
| 148 |
</div> |
| 149 |
<table class="table table-sm table-hover console_table"> |
| 150 |
<thead> |
| 151 |
<th>Element</th> |
| 152 |
<th>Value</th> |
| 153 |
</thead> |
| 154 |
<tbody> |
| 155 |
<tr><td colspan="2"><i>no data</i></td></tr> |
| 156 |
</tbody> |
| 157 |
</table> |
| 158 |
</div> |
| 159 |
</div> |
| 160 |
</div> |
| 161 |
</div> |
| 162 |
</div> |
| 163 |
</form> |
| 164 |
</div> |