Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
18c70835
Commit
18c70835
authored
Feb 15, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added failover index setting
parent
f2553f8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
panels/timepicker/editor.html
+11
-4
panels/timepicker/module.js
+4
-1
No files found.
panels/timepicker/editor.html
View file @
18c70835
...
@@ -5,18 +5,25 @@
...
@@ -5,18 +5,25 @@
</div>
</div>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h6>
Time Field
</h6>
<h6>
Time Field
</h6>
<input
type=
"text"
class=
"input-small"
ng-model=
"panel.timefield"
ng-change=
"get_data()"
>
<input
type=
"text"
class=
"input-small"
ng-model=
"panel.timefield"
>
</div>
</div>
<div
class=
"span6"
>
</div>
<div
class=
"row-fluid"
>
<h5>
Index Settings
</h5>
<div
class=
"span5"
>
<h6>
Index pattern
<small>
Absolutes in double quotes
</small></h6>
<h6>
Index pattern
<small>
Absolutes in double quotes
</small></h6>
<input
type=
"text"
class=
"input-large"
ng-model=
"panel.index"
ng-change=
"get_data()"
>
<input
type=
"text"
class=
"input-medium"
ng-model=
"panel.index"
>
</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>
</div>
</div>
</div>
<div
class=
"row-fluid"
>
<div
class=
"row-fluid"
>
<h5>
Relative mode
<small>
settings
</small></h5>
<h5>
Relative mode
<small>
settings
</small></h5>
<div
class=
"span8"
>
<div
class=
"span8"
>
<h6>
Relative time options
<small>
comma seperated
</small></h6>
<h6>
Relative time options
<small>
comma seperated
</small></h6>
<input
type=
"text"
array-join
class=
"input-large"
ng-model=
"panel.time_options"
ng-change=
"get_data()"
>
<input
type=
"text"
array-join
class=
"input-large"
ng-model=
"panel.time_options"
>
</div>
</div>
<div
class=
"span3"
>
<div
class=
"span3"
>
<h6>
Default timespan
</h6>
<h6>
Default timespan
</h6>
...
...
panels/timepicker/module.js
View file @
18c70835
...
@@ -35,6 +35,7 @@ angular.module('kibana.timepicker', [])
...
@@ -35,6 +35,7 @@ angular.module('kibana.timepicker', [])
timespan
:
'15m'
,
timespan
:
'15m'
,
timefield
:
'@timestamp'
,
timefield
:
'@timestamp'
,
index
:
'"logstash-"yyyy.mm.dd'
,
index
:
'"logstash-"yyyy.mm.dd'
,
defaultindex
:
"NOINDEX"
,
group
:
"default"
,
group
:
"default"
,
refresh
:
{
refresh
:
{
enable
:
false
,
enable
:
false
,
...
@@ -195,7 +196,9 @@ angular.module('kibana.timepicker', [])
...
@@ -195,7 +196,9 @@ angular.module('kibana.timepicker', [])
});
});
return
all_indices
().
then
(
function
(
p
)
{
return
all_indices
().
then
(
function
(
p
)
{
return
_
.
intersection
(
p
,
possible
);
var
indices
=
_
.
intersection
(
p
,
possible
);
console
.
log
(
indices
)
return
indices
.
length
==
0
?
[
$scope
.
panel
.
defaultindex
]
:
indices
;
})
})
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment