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
9d021f43
Commit
9d021f43
authored
May 06, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #67 from rashidkpc/master
Fix for missing index error
parents
e45c08fc
7be784bc
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
34 deletions
+25
-34
config.js
+1
-1
dashboards/default
+2
-11
panels/histogram/module.js
+5
-5
panels/map/module.js
+4
-4
panels/map2/module.js
+4
-4
panels/parallelcoordinates/module.js
+4
-4
panels/pie/module.js
+4
-4
panels/timepicker/module.js
+1
-1
No files found.
config.js
View file @
9d021f43
...
@@ -13,7 +13,7 @@ If you need to configure the default dashboard, please see dashboards/default
...
@@ -13,7 +13,7 @@ If you need to configure the default dashboard, please see dashboards/default
var
config
=
new
Settings
(
var
config
=
new
Settings
(
{
{
// By default this will attempt to reach ES at the same host you have
// By default this will attempt to reach ES at the same host you have
// elasticsearch installed on. You probabl
e
want to set it to the FQDN of your
// elasticsearch installed on. You probabl
y
want to set it to the FQDN of your
// elasticsearch host
// elasticsearch host
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
// elasticsearch: 'http://localhost:9200',
// elasticsearch: 'http://localhost:9200',
...
...
dashboards/default
View file @
9d021f43
...
@@ -127,9 +127,6 @@
...
@@ -127,9 +127,6 @@
"timezone": "browser",
"timezone": "browser",
"spyable": true,
"spyable": true,
"zoomlinks": true,
"zoomlinks": true,
"index": [
"logstash-2013.04.11"
],
"fill": 0,
"fill": 0,
"linewidth": 2,
"linewidth": 2,
"bars": true,
"bars": true,
...
@@ -161,10 +158,7 @@
...
@@ -161,10 +158,7 @@
"arrangement": "horizontal",
"arrangement": "horizontal",
"chart": true,
"chart": true,
"counters": true,
"counters": true,
"count_pos": "above",
"count_pos": "above"
"index": [
"logstash-2013.04.11"
]
}
}
]
]
},
},
...
@@ -228,10 +222,7 @@
...
@@ -228,10 +222,7 @@
"@timestamp",
"@timestamp",
"@message"
"@message"
],
],
"sortable": true,
"sortable": true
"index": [
"logstash-2013.04.11"
]
}
}
]
]
}
}
...
...
panels/histogram/module.js
View file @
9d021f43
...
@@ -101,7 +101,7 @@ angular.module('kibana.histogram', [])
...
@@ -101,7 +101,7 @@ angular.module('kibana.histogram', [])
$scope
.
get_data
=
function
(
segment
,
query_id
)
{
$scope
.
get_data
=
function
(
segment
,
query_id
)
{
delete
$scope
.
panel
.
error
delete
$scope
.
panel
.
error
// Make sure we have everything for the request to complete
// Make sure we have everything for the request to complete
if
(
_
.
isUndefined
(
$scope
.
panel
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
if
(
_
.
isUndefined
(
$scope
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
return
return
if
(
$scope
.
panel
.
auto_int
)
if
(
$scope
.
panel
.
auto_int
)
...
@@ -109,7 +109,7 @@ angular.module('kibana.histogram', [])
...
@@ -109,7 +109,7 @@ angular.module('kibana.histogram', [])
$scope
.
panel
.
loading
=
true
;
$scope
.
panel
.
loading
=
true
;
var
_segment
=
_
.
isUndefined
(
segment
)
?
0
:
segment
var
_segment
=
_
.
isUndefined
(
segment
)
?
0
:
segment
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
panel
.
index
[
_segment
]);
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
index
[
_segment
]);
// Build the question part of the query
// Build the question part of the query
var
queries
=
[];
var
queries
=
[];
...
@@ -200,7 +200,7 @@ angular.module('kibana.histogram', [])
...
@@ -200,7 +200,7 @@ angular.module('kibana.histogram', [])
$scope
.
$emit
(
'render'
)
$scope
.
$emit
(
'render'
)
// If we still have segments left, get them
// If we still have segments left, get them
if
(
_segment
<
$scope
.
panel
.
index
.
length
-
1
)
{
if
(
_segment
<
$scope
.
index
.
length
-
1
)
{
$scope
.
get_data
(
_segment
+
1
,
query_id
)
$scope
.
get_data
(
_segment
+
1
,
query_id
)
}
}
...
@@ -219,7 +219,7 @@ angular.module('kibana.histogram', [])
...
@@ -219,7 +219,7 @@ angular.module('kibana.histogram', [])
$scope
.
modal
=
{
$scope
.
modal
=
{
title
:
"Inspector"
,
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
panel
.
index
+
"/_search?pretty -d'
\
n"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
index
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
,
"'</pre>"
,
}
}
...
@@ -240,7 +240,7 @@ angular.module('kibana.histogram', [])
...
@@ -240,7 +240,7 @@ angular.module('kibana.histogram', [])
$scope
.
time
=
time
;
$scope
.
time
=
time
;
// Should I be storing the index on the panel? It causes errors if the index
// Should I be storing the index on the panel? It causes errors if the index
// goes away. Hmmm.
// goes away. Hmmm.
$scope
.
panel
.
index
=
time
.
index
||
$scope
.
panel
.
index
$scope
.
index
=
time
.
index
||
$scope
.
index
// Only calculate interval if auto_int is set, otherwise don't touch it
// Only calculate interval if auto_int is set, otherwise don't touch it
$scope
.
get_data
();
$scope
.
get_data
();
...
...
panels/map/module.js
View file @
9d021f43
...
@@ -55,11 +55,11 @@ angular.module('kibana.map', [])
...
@@ -55,11 +55,11 @@ angular.module('kibana.map', [])
$scope
.
get_data
=
function
()
{
$scope
.
get_data
=
function
()
{
// Make sure we have everything for the request to complete
// Make sure we have everything for the request to complete
if
(
_
.
isUndefined
(
$scope
.
panel
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
if
(
_
.
isUndefined
(
$scope
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
return
return
$scope
.
panel
.
loading
=
true
;
$scope
.
panel
.
loading
=
true
;
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
panel
.
index
);
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
index
);
// Then the insert into facet and make the request
// Then the insert into facet and make the request
var
request
=
request
var
request
=
request
...
@@ -96,7 +96,7 @@ angular.module('kibana.map', [])
...
@@ -96,7 +96,7 @@ angular.module('kibana.map', [])
$scope
.
modal
=
{
$scope
.
modal
=
{
title
:
"Inspector"
,
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
panel
.
index
+
"/_search?pretty -d'
\
n"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
index
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
,
"'</pre>"
,
}
}
...
@@ -104,7 +104,7 @@ angular.module('kibana.map', [])
...
@@ -104,7 +104,7 @@ angular.module('kibana.map', [])
function
set_time
(
time
)
{
function
set_time
(
time
)
{
$scope
.
time
=
time
;
$scope
.
time
=
time
;
$scope
.
panel
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
panel
.
index
:
time
.
index
$scope
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
index
:
time
.
index
$scope
.
get_data
();
$scope
.
get_data
();
}
}
...
...
panels/map2/module.js
View file @
9d021f43
...
@@ -77,11 +77,11 @@ angular.module('kibana.map2', [])
...
@@ -77,11 +77,11 @@ angular.module('kibana.map2', [])
$scope
.
get_data
=
function
()
{
$scope
.
get_data
=
function
()
{
// Make sure we have everything for the request to complete
// Make sure we have everything for the request to complete
if
(
_
.
isUndefined
(
$scope
.
panel
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
if
(
_
.
isUndefined
(
$scope
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
return
return
$scope
.
panel
.
loading
=
true
;
$scope
.
panel
.
loading
=
true
;
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
panel
.
index
);
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
index
);
var
metric
=
'count'
;
var
metric
=
'count'
;
...
@@ -149,13 +149,13 @@ angular.module('kibana.map2', [])
...
@@ -149,13 +149,13 @@ angular.module('kibana.map2', [])
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
modal
=
{
$scope
.
modal
=
{
title
:
"Inspector"
,
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
panel
.
index
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
index
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
}
}
};
};
function
set_time
(
time
)
{
function
set_time
(
time
)
{
$scope
.
time
=
time
;
$scope
.
time
=
time
;
$scope
.
panel
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
panel
.
index
:
time
.
index
$scope
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
index
:
time
.
index
$scope
.
get_data
();
$scope
.
get_data
();
}
}
...
...
panels/parallelcoordinates/module.js
View file @
9d021f43
...
@@ -54,14 +54,14 @@ angular.module('kibana.parallelcoordinates', [])
...
@@ -54,14 +54,14 @@ angular.module('kibana.parallelcoordinates', [])
$scope
.
get_data
=
function
(
segment
,
query_id
)
{
$scope
.
get_data
=
function
(
segment
,
query_id
)
{
// Make sure we have everything for the request to complete
// Make sure we have everything for the request to complete
if
(
_
.
isUndefined
(
$scope
.
panel
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
if
(
_
.
isUndefined
(
$scope
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
return
;
return
;
var
_segment
=
_
.
isUndefined
(
segment
)
?
0
:
segment
var
_segment
=
_
.
isUndefined
(
segment
)
?
0
:
segment
$scope
.
segment
=
_segment
;
$scope
.
segment
=
_segment
;
$scope
.
panel
.
loading
=
true
;
$scope
.
panel
.
loading
=
true
;
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
panel
.
index
[
_segment
])
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
index
[
_segment
])
.
query
(
ejs
.
FilteredQuery
(
.
query
(
ejs
.
FilteredQuery
(
ejs
.
QueryStringQuery
(
$scope
.
panel
.
query
||
'*'
),
ejs
.
QueryStringQuery
(
$scope
.
panel
.
query
||
'*'
),
ejs
.
RangeFilter
(
$scope
.
time
.
field
)
ejs
.
RangeFilter
(
$scope
.
time
.
field
)
...
@@ -126,13 +126,13 @@ angular.module('kibana.parallelcoordinates', [])
...
@@ -126,13 +126,13 @@ angular.module('kibana.parallelcoordinates', [])
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
modal
=
{
$scope
.
modal
=
{
title
:
"Inspector"
,
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
panel
.
index
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
index
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
}
}
};
};
function
set_time
(
time
)
{
function
set_time
(
time
)
{
$scope
.
time
=
time
;
$scope
.
time
=
time
;
$scope
.
panel
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
panel
.
index
:
time
.
index
$scope
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
index
:
time
.
index
$scope
.
get_data
();
$scope
.
get_data
();
}
}
...
...
panels/pie/module.js
View file @
9d021f43
...
@@ -93,11 +93,11 @@ angular.module('kibana.pie', [])
...
@@ -93,11 +93,11 @@ angular.module('kibana.pie', [])
$scope
.
get_data
=
function
()
{
$scope
.
get_data
=
function
()
{
// Make sure we have everything for the request to complete
// Make sure we have everything for the request to complete
if
(
_
.
isUndefined
(
$scope
.
panel
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
if
(
_
.
isUndefined
(
$scope
.
index
)
||
_
.
isUndefined
(
$scope
.
time
))
return
return
$scope
.
panel
.
loading
=
true
;
$scope
.
panel
.
loading
=
true
;
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
panel
.
index
);
var
request
=
$scope
.
ejs
.
Request
().
indices
(
$scope
.
index
);
// Terms mode
// Terms mode
if
(
$scope
.
panel
.
mode
==
"terms"
)
{
if
(
$scope
.
panel
.
mode
==
"terms"
)
{
...
@@ -168,7 +168,7 @@ angular.module('kibana.pie', [])
...
@@ -168,7 +168,7 @@ angular.module('kibana.pie', [])
$scope
.
modal
=
{
$scope
.
modal
=
{
title
:
"Inspector"
,
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
panel
.
index
+
"/_search?pretty -d'
\
n"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
$scope
.
index
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
,
"'</pre>"
,
}
}
...
@@ -182,7 +182,7 @@ angular.module('kibana.pie', [])
...
@@ -182,7 +182,7 @@ angular.module('kibana.pie', [])
function
set_time
(
time
)
{
function
set_time
(
time
)
{
$scope
.
time
=
time
;
$scope
.
time
=
time
;
$scope
.
panel
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
panel
.
index
:
time
.
index
$scope
.
index
=
_
.
isUndefined
(
time
.
index
)
?
$scope
.
index
:
time
.
index
$scope
.
get_data
();
$scope
.
get_data
();
}
}
...
...
panels/timepicker/module.js
View file @
9d021f43
...
@@ -38,7 +38,7 @@ angular.module('kibana.timepicker', [])
...
@@ -38,7 +38,7 @@ angular.module('kibana.timepicker', [])
timefield
:
'@timestamp'
,
timefield
:
'@timestamp'
,
index
:
'_all'
,
index
:
'_all'
,
defaultindex
:
"_all"
,
defaultindex
:
"_all"
,
index_interval
:
"
day
"
,
index_interval
:
"
none
"
,
group
:
"default"
,
group
:
"default"
,
refresh
:
{
refresh
:
{
enable
:
false
,
enable
:
false
,
...
...
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