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
ffbddb4f
Commit
ffbddb4f
authored
Feb 26, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused default settings, fixed bug where pie would query twice
parent
e61c63b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
common/lib/settings.js
+2
-16
config.js
+1
-1
panels/pie/module.js
+0
-1
No files found.
common/lib/settings.js
View file @
ffbddb4f
...
@@ -2,22 +2,9 @@
...
@@ -2,22 +2,9 @@
// To add a setting, you MUST define a default.
// To add a setting, you MUST define a default.
var
Settings
=
function
(
s
)
{
var
Settings
=
function
(
s
)
{
var
_d
=
{
var
_d
=
{
timespan
:
'1h'
,
refresh
:
10000
,
elasticsearch
:
'localhost:9200'
,
elasticsearch
:
'localhost:9200'
,
perpage
:
50
,
timezone
:
'user'
,
timeformat
:
'mm/dd HH:MM:ss'
,
timeformat
:
'mm/dd HH:MM:ss'
,
timefield
:
'@timestamp'
,
modules
:
[],
defaultfields
:
[
'@message'
],
operator
:
'OR'
,
exportdelim
:
','
,
smartindex
:
true
,
indexpattern
:
'logstash-%Y.%m.%d'
,
indexlimit
:
150
,
indexdefault
:
'logstash-*'
,
primaryfield
:
'_all'
,
modules
:
[]
}
}
// This initializes a new hash on purpose, to avoid adding parameters to
// This initializes a new hash on purpose, to avoid adding parameters to
...
@@ -29,4 +16,4 @@ var Settings = function (s) {
...
@@ -29,4 +16,4 @@ var Settings = function (s) {
return
_s
;
return
_s
;
};
};
\ No newline at end of file
config.js
View file @
ffbddb4f
...
@@ -13,7 +13,7 @@ If you need to configure the default dashboard, please see dashboard.js
...
@@ -13,7 +13,7 @@ If you need to configure the default dashboard, please see dashboard.js
*/
*/
var
config
=
new
Settings
(
var
config
=
new
Settings
(
{
{
elasticsearch
:
'http://localhost:920
1
'
,
elasticsearch
:
'http://localhost:920
0
'
,
timeformat
:
'mm/dd HH:MM:ss'
,
timeformat
:
'mm/dd HH:MM:ss'
,
modules
:
[
'histogram'
,
'map'
,
'pie'
,
'table'
,
'stringquery'
,
'sort'
,
modules
:
[
'histogram'
,
'map'
,
'pie'
,
'table'
,
'stringquery'
,
'sort'
,
'timepicker'
,
'text'
,
'fields'
,
'hits'
,
'dashcontrol'
],
'timepicker'
,
'text'
,
'fields'
,
'hits'
,
'dashcontrol'
],
...
...
panels/pie/module.js
View file @
ffbddb4f
...
@@ -22,7 +22,6 @@ angular.module('kibana.pie', [])
...
@@ -22,7 +22,6 @@ angular.module('kibana.pie', [])
if
(
$scope
.
panel
.
mode
!==
'query'
)
{
if
(
$scope
.
panel
.
mode
!==
'query'
)
{
$scope
.
panel
.
query
.
query
=
query
;
$scope
.
panel
.
query
.
query
=
query
;
$scope
.
panel
.
query
.
query
=
_
.
isArray
(
query
)
?
query
[
0
]
:
query
;
$scope
.
panel
.
query
.
query
=
_
.
isArray
(
query
)
?
query
[
0
]
:
query
;
$scope
.
get_data
();
}
else
{
}
else
{
if
(
_
.
isArray
(
query
))
if
(
_
.
isArray
(
query
))
$scope
.
panel
.
query
=
_
.
map
(
query
,
function
(
q
)
{
$scope
.
panel
.
query
=
_
.
map
(
query
,
function
(
q
)
{
...
...
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