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
2e59587c
Commit
2e59587c
authored
Jan 31, 2014
by
John Dyer
Committed by
Torkel Ödegaard
Feb 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up, and set default in config to false
parent
6f452025
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
src/app/components/settings.js
+7
-6
src/app/services/dashboard.js
+6
-6
src/config.js
+4
-0
No files found.
src/app/components/settings.js
View file @
2e59587c
...
@@ -13,12 +13,13 @@ function (_, crypto) {
...
@@ -13,12 +13,13 @@ function (_, crypto) {
* @type {Object}
* @type {Object}
*/
*/
var
defaults
=
{
var
defaults
=
{
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
graphiteUrl
:
"http://"
+
window
.
location
.
hostname
+
":8080"
,
graphiteUrl
:
"http://"
+
window
.
location
.
hostname
+
":8080"
,
panel_names
:
[],
panel_names
:
[],
default_route
:
'/dashboard/file/default.json'
,
default_route
:
'/dashboard/file/default.json'
,
grafana_index
:
'grafana-dash'
,
grafana_index
:
'grafana-dash'
,
timezoneOffset
:
null
,
elasticsearch_all_disabled
:
false
,
timezoneOffset
:
null
,
};
};
// This initializes a new hash on purpose, to avoid adding parameters to
// This initializes a new hash on purpose, to avoid adding parameters to
...
...
src/app/services/dashboard.js
View file @
2e59587c
...
@@ -387,13 +387,13 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
...
@@ -387,13 +387,13 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
this
.
elasticsearch_list
=
function
(
query
,
count
)
{
this
.
elasticsearch_list
=
function
(
query
,
count
)
{
var
request
=
ejs
.
Request
().
indices
(
config
.
grafana_index
).
types
(
'dashboard'
);
var
request
=
ejs
.
Request
().
indices
(
config
.
grafana_index
).
types
(
'dashboard'
);
var
q
=
null
;
if
(
config
.
elasticsearch_all_disabled
==
true
){
q
=
(
'title:'
+
(
query
||
'*'
))
}
else
{
q
=
(
query
||
'*'
)
}
return
request
.
query
(
return
request
.
query
(
var
q
=
null
;
if
(
config
.
elasticsearch_all_disabled
){
q
=
(
'title:'
+
(
query
||
'*'
))
}
else
{
q
=
(
query
||
'*'
)
}
ejs
.
QueryStringQuery
(
q
)
ejs
.
QueryStringQuery
(
q
)
).
size
(
count
).
doSearch
(
).
size
(
count
).
doSearch
(
// Success
// Success
...
...
src/config.js
View file @
2e59587c
...
@@ -15,6 +15,10 @@ function (Settings) {
...
@@ -15,6 +15,10 @@ function (Settings) {
*/
*/
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
elasticsearch
:
"http://"
+
window
.
location
.
hostname
+
":9200"
,
/**
If you have _all query disabled on Elastic search then this must be set to true
https://github.com/torkelo/grafana/issues/24
**/
elasticsearch_all_disabled
:
false
,
elasticsearch_all_disabled
:
false
,
/**
/**
* graphite-web url:
* graphite-web url:
...
...
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