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
3a50be4e
Commit
3a50be4e
authored
Dec 04, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #752 from rashidkpc/master
Speed up loading by skipping mapping parsing
parents
0efdd461
f4cc5646
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
62 deletions
+24
-62
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/panels/timepicker/module.html
+2
-2
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 @
3a50be4e
...
...
@@ -26,6 +26,7 @@
"index"
:
{
"interval"
:
"none"
,
"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 @
3a50be4e
...
...
@@ -64,61 +64,14 @@
"index"
:
{
"interval"
:
"none"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"default"
:
"_all"
"default"
:
"_all"
,
"warm_fields"
:
false
},
"style"
:
"dark"
,
"failover"
:
false
,
"panel_hints"
:
true
,
"pulldowns"
:
[
{
"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
}
],
"pulldowns"
:
[],
"nav"
:
[],
"loader"
:
{
"save_gist"
:
false
,
"save_elasticsearch"
:
true
,
...
...
src/app/dashboards/guided.json
View file @
3a50be4e
...
...
@@ -200,7 +200,8 @@
"index"
:
{
"interval"
:
"none"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"default"
:
"_all"
"default"
:
"_all"
,
"warm_fields"
:
false
},
"style"
:
"dark"
,
"failover"
:
false
,
...
...
src/app/dashboards/noted.json
View file @
3a50be4e
...
...
@@ -89,7 +89,8 @@
"index"
:
{
"interval"
:
"none"
,
"pattern"
:
"[logstash-]YYYY.MM.DD"
,
"default"
:
"_all"
"default"
:
"_all"
,
"warm_fields"
:
false
},
"style"
:
"dark"
,
"failover"
:
false
,
...
...
src/app/panels/table/module.html
View file @
3a50be4e
...
...
@@ -10,11 +10,11 @@
<div
class=
"row-fluid"
>
<div
bindonce
ng-class=
"{'span3':panel.field_list}"
ng-if=
"panel.field_list"
>
<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"
>
<span
class=
"link
"
ng-click=
"panel.all_fields = true;
"
ng-class=
"{strong:panel.all_fields}"
>
All ({{fields.list.length}})
</span>
<br>
<span
class=
"link"
ng-click=
"panel.all_fields = false;"
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>
/
<span
class=
"link
small
"
ng-click=
"panel.all_fields = false;"
ng-class=
"{strong:!panel.all_fields}"
>
Current ({{current_fields.length || 0}})
</span>
</div>
...
...
src/app/panels/timepicker/module.html
View file @
3a50be4e
...
...
@@ -15,7 +15,7 @@
<ul
class=
"nav nav-pills timepicker-dropdown"
>
<li
class=
"dropdown"
>
<a
class=
"dropdown-toggle timepicker-dropdown"
data-toggle=
"dropdown"
href=
""
bs-tooltip=
"
(time.from.date | date:'yyyy-MM-dd HH:mm:ss.sss') + ' <br>to<br>' +(time.to.date | date:'yyyy-MM-dd HH:mm:ss.sss')
"
data-placement=
"bottom"
ng-click=
"dismiss();"
>
<a
class=
"dropdown-toggle timepicker-dropdown"
data-toggle=
"dropdown"
href=
""
bs-tooltip=
"
time.from.date ? (time.from.date | date:'yyyy-MM-dd HH:mm:ss.sss') + ' <br>to<br>' +(time.to.date | date:'yyyy-MM-dd HH:mm:ss.sss') : 'Click to set a time filter'
"
data-placement=
"bottom"
ng-click=
"dismiss();"
>
<span
ng-show=
"filterSrv.idsByType('time').length"
>
<span
class=
"pointer"
ng-hide=
"panel.now"
>
{{time.from.date | date:'MMM d, y HH:mm:ss'}}
</span>
...
...
@@ -24,7 +24,7 @@
<span
class=
"pointer"
ng-hide=
"panel.now"
>
{{time.to.date | date:'MMM d, y HH:mm:ss'}}
</span>
<span
class=
"pointer"
ng-show=
"panel.now"
>
{{time.to.date | moment:'ago'}}
</span>
</span>
<span
ng-hide=
"filterSrv.idsByType('time').length"
>
Set a t
ime filter
</span>
<span
ng-hide=
"filterSrv.idsByType('time').length"
>
T
ime filter
</span>
<span
ng-show=
"dashboard.current.refresh"
class=
"text-warning"
>
refreshed every {{dashboard.current.refresh}}
</span>
<i
class=
"icon-caret-down"
></i>
</a>
...
...
src/app/partials/dasheditor.html
View file @
3a50be4e
...
...
@@ -62,6 +62,10 @@
<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"
>
</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>
...
...
src/app/services/dashboard.js
View file @
3a50be4e
...
...
@@ -57,7 +57,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
index
:
{
interval
:
'none'
,
pattern
:
'_all'
,
default
:
'INDEX_MISSING'
default
:
'INDEX_MISSING'
,
warm_fields
:
true
},
refresh
:
false
};
...
...
src/app/services/fields.js
View file @
3a50be4e
...
...
@@ -17,7 +17,7 @@ function (angular, _, config) {
this
.
fullMapping
=
{};
$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
var
indices
=
_
.
difference
(
n
,
_
.
keys
(
self
.
fullMapping
));
// 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