mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added timestamp index option
This commit is contained in:
parent
8e15414852
commit
5668ec7cb5
@ -32,6 +32,7 @@ angular.module('kibana.dashcontrol', [])
|
||||
// Long ugly if statement for figuring out which dashboard to load on init
|
||||
// If there is no dashboard defined, find one
|
||||
if(_.isUndefined($scope.dashboards)) {
|
||||
console.log('ok, defining')
|
||||
// First check the URL for a path to a dashboard
|
||||
if(!(_.isUndefined($routeParams.type)) && !(_.isUndefined($routeParams.id))) {
|
||||
var _type = $routeParams.type;
|
||||
|
@ -10,13 +10,33 @@
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<h5>Index Settings</h5>
|
||||
<div class="span5">
|
||||
<h6>Index pattern <small>Absolutes in double quotes</small></h6>
|
||||
<input type="text" class="input-medium" ng-model="panel.index">
|
||||
<div ng-show="panel.timed_indices" class="row-fluid">
|
||||
<div class="span12">
|
||||
<p>
|
||||
Time stamped indices use a dated index pattern instead of pointing directly
|
||||
to one specific index. For example, to match the default logstash index pattern
|
||||
you might use <code>"logstash-"yyyy.mm.dd</code>. The quotes around "logstash-"
|
||||
are important as they instruct Kibana not to treat those letters as a pattern.
|
||||
</p>
|
||||
<p>
|
||||
See <a href="http://blog.stevenlevithan.com/archives/date-time-format">http://blog.stevenlevithan.com/archives/date-time-format</a>
|
||||
for documentation on date formatting.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="span5">
|
||||
<h6>Failover Index <small>If none match the pattern</small></h6>
|
||||
<input type="text" class="input-medium" ng-model="panel.defaultindex">
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<h6>Timestamped</h6><input type="checkbox" ng-model="panel.timed_indices" ng-checked="panel.timed_indices">
|
||||
</div>
|
||||
<div class="span5">
|
||||
<h6>Index <span ng-show="panel.timed_indices">pattern</span> <small ng-show="panel.timed_indices">Absolutes in double quotes</small></h6>
|
||||
<input type="text" class="input-medium" ng-model="panel.index">
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h6>Failover Index <small>If index not found</small></h6>
|
||||
<input type="text" class="input-medium" ng-model="panel.defaultindex">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
|
Loading…
Reference in New Issue
Block a user