mirror of https://github.com/grafana/grafana
pull/7/head
parent
0d560c24e6
commit
0d0d3f4a36
@ -1,22 +1,26 @@ |
||||
<div> |
||||
<div class="row-fluid"> |
||||
<div class="span12"> |
||||
The derive queries panel takes a query and a field, then runs a terms facet against both and generates a list of terms to query on. For example, you might want to see a histogram of the top 5 requests that return a 404. <strong>You should be careful not to select a high cardinality field</strong> as Elasticsearch must load all of these values into memory.<p> |
||||
Query Mode allows to optionally append original query to each term in the list. |
||||
</div> |
||||
</div> |
||||
<div class="row-fluid"> |
||||
<div class="span1"> |
||||
<label class="small">Length</label> |
||||
<input type="number" style="width:80%" ng-model="panel.size" ng-change="set_refresh(true)"> |
||||
</div> |
||||
<div class="span3"> |
||||
<label class="small">Field</label> |
||||
<input type="text" bs-typeahead="fields.list" style="width:80%" ng-change="set_refresh(true)" ng-model='panel.field'></select> |
||||
</div> |
||||
<div class="span3"> |
||||
<label class="small">Query Mode</label> |
||||
<select style="width:80%" ng-change="set_refresh(true)" ng-model='panel.mode' ng-options="f for f in ['terms only','AND', 'OR']"></select> |
||||
</div> |
||||
<div class="span8"> |
||||
<div class="span5"> |
||||
<label class="small">Exclude Terms(s) (comma seperated)</label> |
||||
<input array-join type="text" style="width:90%" ng-change="set_refresh(true)" ng-model='panel.exclude'></input> |
||||
</div> |
||||
</div> |
||||
<div class="row-fluid"> |
||||
<div class="span12"> |
||||
The derive queries panel takes a query and a field, runs a terms facet, then creates queries based on them. For example, you might want to see a histogram of the top 5 requests that return a 404. <strong>You should be careful not to select a high cardinality field</strong> as Elasticsearch must load all of these values into memory.<p> |
||||
Query Mode allows to optionally append original query to each term in the list. |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
@ -1,83 +1,62 @@ |
||||
<div class="row-fluid" ng-switch="panel.mode"> |
||||
<div class="span3"> |
||||
<label class="small">Mode</label> |
||||
<select class="input-small" ng-change="set_mode(panel.mode)" ng-model="panel.mode" ng-options="f for f in ['terms','goal']"></select> |
||||
</div> |
||||
<div ng-switch-when="terms"> |
||||
<div> |
||||
<div class="row-fluid" ng-switch="panel.mode"> |
||||
<div class="row-fluid"> |
||||
<div class="span3"> |
||||
<form style="margin-bottom: 0px"> |
||||
<div class="span2"> |
||||
<label class="small">Mode</label> |
||||
<select class="input-small" ng-change="set_mode(panel.mode);set_refresh(true)" ng-model="panel.mode" ng-options="f for f in ['terms','goal']"></select> |
||||
</div> |
||||
</div> |
||||
<div ng-switch-when="terms"> |
||||
<div class="row-fluid"> |
||||
<div class="span2"> |
||||
<label class="small">Field</label> |
||||
<input type="text" style="width:90%" bs-typeahead="fields.list" ng-model="panel.query.field"> |
||||
</form> |
||||
</div> |
||||
<div class="span5"> |
||||
<form class="input-append" style="margin-bottom: 0px"> |
||||
<label class="small">Query</label> |
||||
<input type="text" style="width:80%" ng-model="panel.query.query"> |
||||
<button class="btn" ng-click="get_data()"><i class="icon-search"></i></button> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
<div class="row-fluid"> |
||||
<div class="span3"> |
||||
<label class="small">Length</label> |
||||
<input type="number" style="width:80%" ng-model="panel.size" ng-change="get_data()"> |
||||
</div> |
||||
<div class="span8"> |
||||
<form class="input-append" style="margin-bottom: 0px"> |
||||
<input type="text" class="input-small" bs-typeahead="fields.list" ng-model="panel.query.field" ng-change="set_refresh(true)"> |
||||
</div> |
||||
<div class="span2"> |
||||
<label class="small">Length</label> |
||||
<input class="input-small" type="number" ng-model="panel.size" ng-change="set_refresh(true)"> |
||||
</div> |
||||
<div class="span6"> |
||||
<label class="small">Exclude Terms(s) (comma seperated)</label> |
||||
<input array-join type="text" style="width:90%" ng-model='panel.exclude'></input> |
||||
<button class="btn" ng-click="get_data()"><i class="icon-search"></i></button> |
||||
</form> |
||||
</div> |
||||
<input array-join type="text" ng-model='panel.exclude'></input> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div ng-switch-when="goal"> |
||||
<div class="row-fluid"> |
||||
<div class="span3"> |
||||
<label class="small">Mode</label> |
||||
<select class="input-small" ng-change="set_mode(panel.mode)" ng-model="panel.mode" ng-options="f for f in ['terms','goal']"></select> |
||||
</div> |
||||
<div class="span2"> |
||||
<form style="margin-bottom: 0px"> |
||||
<label class="small">Goal</label> |
||||
<input type="number" style="width:90%" ng-model="panel.query.goal"> |
||||
</form> |
||||
</div> |
||||
<div class="span5"> |
||||
<form class="input-append" style="margin-bottom: 0px"> |
||||
<label class="small">Query</label> |
||||
<input type="text" style="width:80%" ng-model="panel.query.query"> |
||||
<button class="btn" ng-click="get_data()"><i class="icon-search"></i></button> |
||||
</form> |
||||
<div ng-switch-when="goal"> |
||||
<div class="row-fluid"> |
||||
<div class="span2"> |
||||
<form style="margin-bottom: 0px"> |
||||
<label class="small">Goal</label> |
||||
<input type="number" style="width:90%" ng-model="panel.query.goal" ng-change="set_refresh(true)"> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="row-fluid"> |
||||
<div class="span1"> |
||||
<label class="small"> Donut </label><input type="checkbox" ng-model="panel.donut" ng-checked="panel.donut"> |
||||
</div> |
||||
<div class="span1"> |
||||
<label class="small"> Tilt </label><input type="checkbox" ng-model="panel.tilt" ng-checked="panel.tilt"> |
||||
</div> |
||||
<div class="span1"> |
||||
<label class="small"> Labels </label><input type="checkbox" ng-model="panel.labels" ng-checked="panel.labels"> |
||||
</div> |
||||
<div class="span3"> |
||||
<label class="small">Legend</label> |
||||
<select class="input-small" ng-model="panel.legend" ng-options="f for f in ['above','below','none']"></select></span> |
||||
</div> |
||||
</div> |
||||
<h5>Panel Spy</h5> |
||||
<div class="row-fluid"> |
||||
<div class="span2"> |
||||
<label class="small"> Spyable </label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable"> |
||||
<div class="row-fluid"> |
||||
<div class="span1"> |
||||
<label class="small"> Donut </label><input type="checkbox" ng-model="panel.donut" ng-checked="panel.donut"> |
||||
</div> |
||||
<div class="span1"> |
||||
<label class="small"> Tilt </label><input type="checkbox" ng-model="panel.tilt" ng-checked="panel.tilt"> |
||||
</div> |
||||
<div class="span1"> |
||||
<label class="small"> Labels </label><input type="checkbox" ng-model="panel.labels" ng-checked="panel.labels"> |
||||
</div> |
||||
<div class="span3"> |
||||
<label class="small">Legend</label> |
||||
<select class="input-small" ng-model="panel.legend" ng-options="f for f in ['above','below','none']"></select></span> |
||||
</div> |
||||
</div> |
||||
<div class="span9 small"> |
||||
The panel spy shows 'behind the scenes' information about a panel. It can |
||||
be accessed by clicking the <i class='icon-eye-open'></i> in the top right |
||||
of the panel. |
||||
<h5>Panel Spy</h5> |
||||
<div class="row-fluid"> |
||||
<div class="span2"> |
||||
<label class="small"> Spyable </label><input type="checkbox" ng-model="panel.spyable" ng-checked="panel.spyable"> |
||||
</div> |
||||
<div class="span9 small"> |
||||
The panel spy shows 'behind the scenes' information about a panel. It can |
||||
be accessed by clicking the <i class='icon-eye-open'></i> in the top right |
||||
of the panel. |
||||
</div> |
||||
</div> |
||||
</div> |
@ -1,5 +1,15 @@ |
||||
<style> |
||||
</style> |
||||
<a class="close" ng-click="render();dismiss();" href="">×</a> |
||||
<input class="input-medium" type="text" ng-model="queries.list[id].alias" placeholder='Alias...' /> |
||||
<i ng-repeat="color in queries.colors" class="pointer" ng-class="{'icon-circle-blank':queries.list[id].color == color,'icon-circle':queries.list[id].color != color}" style="color:{{color}}" ng-click="queries.list[id].color = color;render();"> </i> |
||||
<div> |
||||
<style> |
||||
.input-query-alias { |
||||
margin-bottom: 5px !important; |
||||
} |
||||
</style> |
||||
<a class="close" ng-click="render();dismiss();" href="">×</a> |
||||
<h6>Query Alias</h6> |
||||
<form> |
||||
<input class="input-medium input-query-alias" type="text" ng-model="queries.list[id].alias" placeholder='Alias...' /> |
||||
<div> |
||||
<i ng-repeat="color in queries.colors" class="pointer" ng-class="{'icon-circle-blank':queries.list[id].color == color,'icon-circle':queries.list[id].color != color}" style="color:{{color}}" ng-click="queries.list[id].color = color;render();"> </i> |
||||
</div> |
||||
</form> |
||||
</div> |
Loading…
Reference in new issue