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
1081de13
Commit
1081de13
authored
Dec 04, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added dashboard.current.index.warm_fields to allow disabling of pre-parsing the mapping.
parent
0efdd461
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
60 deletions
+22
-60
src/app/dashboards/blank.json
+3
-1
src/app/dashboards/default.json
+4
-51
src/app/dashboards/guided.json
+2
-1
src/app/dashboards/noted.json
+2
-1
src/app/panels/table/module.html
+4
-4
src/app/partials/dasheditor.html
+4
-0
src/app/services/dashboard.js
+2
-1
src/app/services/fields.js
+1
-1
No files found.
src/app/dashboards/blank.json
View file @
1081de13
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
"index"
:
{
"index"
:
{
"interval"
:
"none"
,
"interval"
:
"none"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"default"
:
"_all"
"default"
:
"_all"
,
"warm_fields"
:
false
}
}
}
}
\ No newline at end of file
src/app/dashboards/default.json
View file @
1081de13
...
@@ -64,61 +64,14 @@
...
@@ -64,61 +64,14 @@
"index"
:
{
"index"
:
{
"interval"
:
"none"
,
"interval"
:
"none"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"default"
:
"_all"
"default"
:
"_all"
,
"warm_fields"
:
false
},
},
"style"
:
"dark"
,
"style"
:
"dark"
,
"failover"
:
false
,
"failover"
:
false
,
"panel_hints"
:
true
,
"panel_hints"
:
true
,
"pulldowns"
:
[
"pulldowns"
:
[],
{
"nav"
:
[],
"type"
:
"query"
,
"collapse"
:
true
,
"notice"
:
false
,
"query"
:
"*"
,
"pinned"
:
true
,
"history"
:
[],
"remember"
:
10
},
{
"type"
:
"filtering"
,
"collapse"
:
true
,
"notice"
:
false
}
],
"nav"
:
[
{
"type"
:
"timepicker"
,
"collapse"
:
false
,
"notice"
:
false
,
"status"
:
"Stable"
,
"time_options"
:
[
"5m"
,
"15m"
,
"1h"
,
"6h"
,
"12h"
,
"24h"
,
"2d"
,
"7d"
,
"30d"
],
"refresh_intervals"
:
[
"5s"
,
"10s"
,
"30s"
,
"1m"
,
"5m"
,
"15m"
,
"30m"
,
"1h"
,
"2h"
,
"1d"
],
"timefield"
:
"@timestamp"
,
"now"
:
true
,
"filter_id"
:
0
}
],
"loader"
:
{
"loader"
:
{
"save_gist"
:
false
,
"save_gist"
:
false
,
"save_elasticsearch"
:
true
,
"save_elasticsearch"
:
true
,
...
...
src/app/dashboards/guided.json
View file @
1081de13
...
@@ -200,7 +200,8 @@
...
@@ -200,7 +200,8 @@
"index"
:
{
"index"
:
{
"interval"
:
"none"
,
"interval"
:
"none"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"default"
:
"_all"
"default"
:
"_all"
,
"warm_fields"
:
false
},
},
"style"
:
"dark"
,
"style"
:
"dark"
,
"failover"
:
false
,
"failover"
:
false
,
...
...
src/app/dashboards/noted.json
View file @
1081de13
...
@@ -89,7 +89,8 @@
...
@@ -89,7 +89,8 @@
"index"
:
{
"index"
:
{
"interval"
:
"none"
,
"interval"
:
"none"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"default"
:
"_all"
"default"
:
"_all"
,
"warm_fields"
:
false
},
},
"style"
:
"dark"
,
"style"
:
"dark"
,
"failover"
:
false
,
"failover"
:
false
,
...
...
src/app/panels/table/module.html
View file @
1081de13
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
<div
class=
"row-fluid"
>
<div
class=
"row-fluid"
>
<div
bindonce
ng-class=
"{'span3':panel.field_list}"
ng-if=
"panel.field_list"
>
<div
bindonce
ng-class=
"{'span3':panel.field_list}"
ng-if=
"panel.field_list"
>
<div
class=
"sidebar-nav"
>
<div
class=
"sidebar-nav"
>
<strong>
Fields
<i
class=
" icon-chevron-sign-left pointer "
ng-click=
"panel.field_list = !panel.field_list"
bs-tooltip=
"'Hide field list'"
ng-show=
"panel.field_list"
></i></strong><p>
<strong>
Fields
<i
class=
" icon-chevron-sign-left pointer "
ng-click=
"panel.field_list = !panel.field_list"
bs-tooltip=
"'Hide field list'"
></i></strong><p>
<div
class=
"small"
>
<div
class=
"small"
>
<span
class=
"link
"
ng-click=
"panel.all_fields = true;
"
ng-class=
"{strong:panel.all_fields}"
>
<span
class=
"link
small"
ng-click=
"panel.all_fields = true;"
ng-if=
"fields.list.length
"
ng-class=
"{strong:panel.all_fields}"
>
All ({{fields.list.length}})
</span>
<br>
All ({{fields.list.length}})
</span>
/
<span
class=
"link"
ng-click=
"panel.all_fields = false;"
ng-class=
"{strong:!panel.all_fields}"
>
<span
class=
"link
small
"
ng-click=
"panel.all_fields = false;"
ng-class=
"{strong:!panel.all_fields}"
>
Current ({{current_fields.length || 0}})
</span>
Current ({{current_fields.length || 0}})
</span>
</div>
</div>
...
...
src/app/partials/dasheditor.html
View file @
1081de13
...
@@ -62,6 +62,10 @@
...
@@ -62,6 +62,10 @@
<h6>
Default Index
<small
ng-show=
"dashboard.current.index.interval != 'none'"
>
If index not found
</small></h6>
<h6>
Default Index
<small
ng-show=
"dashboard.current.index.interval != 'none'"
>
If index not found
</small></h6>
<input
type=
"text"
class=
"input-medium"
ng-model=
"dashboard.current.index.default"
>
<input
type=
"text"
class=
"input-medium"
ng-model=
"dashboard.current.index.default"
>
</div>
</div>
<div
class=
"span2"
>
<h6>
Preload Fields
<i
class=
"icon-question-sign"
bs-tooltip=
"'Preload available fields for the purpose of autocomplete. Turn this off if you have many fields'"
></i></h6>
<input
type=
"checkbox"
ng-model=
"dashboard.current.index.warm_fields"
ng-checked=
"dashboard.current.index.warm_fields"
/>
</div>
</div>
</div>
</div>
</div>
...
...
src/app/services/dashboard.js
View file @
1081de13
...
@@ -57,7 +57,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
...
@@ -57,7 +57,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
index
:
{
index
:
{
interval
:
'none'
,
interval
:
'none'
,
pattern
:
'_all'
,
pattern
:
'_all'
,
default
:
'INDEX_MISSING'
default
:
'INDEX_MISSING'
,
warm_fields
:
true
},
},
refresh
:
false
refresh
:
false
};
};
...
...
src/app/services/fields.js
View file @
1081de13
...
@@ -17,7 +17,7 @@ function (angular, _, config) {
...
@@ -17,7 +17,7 @@ function (angular, _, config) {
this
.
fullMapping
=
{};
this
.
fullMapping
=
{};
$rootScope
.
$watch
(
function
(){
return
dashboard
.
indices
;},
function
(
n
)
{
$rootScope
.
$watch
(
function
(){
return
dashboard
.
indices
;},
function
(
n
)
{
if
(
!
_
.
isUndefined
(
n
)
&&
n
.
length
)
{
if
(
!
_
.
isUndefined
(
n
)
&&
n
.
length
&&
dashboard
.
current
.
index
.
warm_fields
)
{
// Only get the mapping for indices we don't know it for
// Only get the mapping for indices we don't know it for
var
indices
=
_
.
difference
(
n
,
_
.
keys
(
self
.
fullMapping
));
var
indices
=
_
.
difference
(
n
,
_
.
keys
(
self
.
fullMapping
));
// Only get the mapping if there are new indices
// Only get the mapping if there are new 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