Disable annotations and compact table with 10 or more indices

This commit is contained in:
Rashid Khan 2014-01-06 15:25:16 -07:00
parent 4c75eb49ef
commit c0a8ed5612
3 changed files with 8 additions and 8 deletions

View file

@ -69,7 +69,7 @@ var annotate_config;
if (marker_query) {
annotate_config = {
"enable": true,
"enable": false,
"query": "_type:shard_event AND (" + marker_query + ")",
"size": 100,
"field": "message",

View file

@ -144,7 +144,7 @@
"title": "Document Count",
"pointradius": 5,
"annotate": {
"enable": true,
"enable": false,
"query": "_type:cluster_event",
"size": 100,
"field": "message",
@ -217,7 +217,7 @@
"title": "Search request rate",
"pointradius": 5,
"annotate": {
"enable": true,
"enable": false,
"query": "_type:cluster_event",
"size": 100,
"field": "message",
@ -290,7 +290,7 @@
"title": "Indexing request rate",
"pointradius": 5,
"annotate": {
"enable": true,
"enable": false,
"query": "_type:cluster_event",
"size": 100,
"field": "message",

View file

@ -37,12 +37,12 @@
<div class="pull-left marvel-header marvel-table" ng-show="rows.length > 0">
<span class="count">{{rows.length}} {{panel.mode}}</span> / Last 10m </span>
</div>
<div class="pull-right">
<!--<div class="pull-right">
<a href="" ng-class="{strong:!panel.compact}" ng-click="panel.compact=false">Full</a> /
<a href="" ng-class="{strong:panel.compact}" ng-click="panel.compact=true">Compact</a>
</div>
</div>-->
<table bindonce class="table table-bordered" ng-if="!panel.compact">
<table bindonce class="table table-bordered" ng-if="rows.length < 10">
<thead>
<th class="pointer" ng-click="set_sort('__name__')">
{{panel.mode}}
@ -80,7 +80,7 @@
</tr>
</table>
<table bindonce class="table table-bordered table-condensed marvel-table" ng-if="panel.compact">
<table bindonce class="table table-bordered table-condensed marvel-table" ng-if="rows.length >= 10">
<thead>
<th class="pointer" ng-click="set_sort('__name__')">
{{panel.mode}}