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
2e85fbec
Commit
2e85fbec
authored
Jul 30, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated inspector template
parent
f574374a
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
69 additions
and
45 deletions
+69
-45
common/css/bootstrap.light.min.css
+0
-0
common/css/main.css
+0
-4
js/filters.js
+7
-0
js/services.js
+1
-1
panels/bettermap/module.html
+1
-1
panels/bettermap/module.js
+1
-8
panels/derivequeries/module.html
+1
-1
panels/derivequeries/module.js
+1
-7
panels/histogram/module.html
+1
-1
panels/histogram/module.js
+1
-7
panels/hits/editor.html
+11
-0
panels/hits/module.html
+3
-1
panels/hits/module.js
+4
-3
panels/table/module.html
+1
-1
panels/table/module.js
+1
-7
panels/terms/editor.html
+11
-0
panels/terms/module.html
+3
-1
panels/terms/module.js
+4
-2
partials/inspector.html
+17
-0
No files found.
common/css/bootstrap.light.min.css
View file @
2e85fbec
This source diff could not be displayed because it is too large. You can
view the blob
instead.
common/css/main.css
View file @
2e85fbec
...
...
@@ -25,10 +25,6 @@
top
:
0px
;
}
.navbar
.brand
{
color
:
#eee
;
}
.navbar-inner
{
border-width
:
0
0
0px
;
padding-left
:
0px
;
...
...
js/filters.js
View file @
2e85fbec
...
...
@@ -26,4 +26,10 @@ angular.module('kibana.filters', [])
return
arr
.
slice
(
start
,
end
);
}
};
}).
filter
(
'stringify'
,
function
()
{
return
function
(
arr
,
start
,
end
)
{
if
(
!
_
.
isUndefined
(
arr
))
{
return
arr
.
toString
();
}
};
});
\ No newline at end of file
js/services.js
View file @
2e85fbec
...
...
@@ -441,7 +441,7 @@ angular.module('kibana.services', [])
index
:
{
interval
:
'none'
,
pattern
:
'_all'
,
default
:
'
_all
'
default
:
'
INDEX_MISSING
'
},
};
...
...
panels/bettermap/module.html
View file @
2e85fbec
...
...
@@ -4,7 +4,7 @@
<link
rel=
"stylesheet"
href=
"panels/bettermap/lib/plugins.css"
/>
<span
ng-show=
"panel.spyable"
style=
"position:absolute;right:0px;top:0px"
class=
'panelextra pointer'
>
<i
bs-modal=
"'partials/
modal
.html'"
class=
"icon-eye-open"
></i>
<i
bs-modal=
"'partials/
inspector
.html'"
class=
"icon-eye-open"
></i>
</span>
<!-- This solution might work well for other panels that have trouble with heights -->
<div
style=
"padding-right:10px;padding-top:10px;height:{{panel.height|| row.height}};overflow:hidden"
>
...
...
panels/bettermap/module.js
View file @
2e85fbec
...
...
@@ -140,15 +140,8 @@ angular.module('kibana.bettermap', [])
});
};
// I really don't like this function, too much dom manip. Break out into directive?
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
modal
=
{
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
dashboard
.
indices
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
,
};
$scope
.
inspector
=
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
);
};
})
...
...
panels/derivequeries/module.html
View file @
2e85fbec
...
...
@@ -18,7 +18,7 @@
}
</style>
<span
ng-show=
'panel.spyable'
style=
"position:absolute;right:0px;top:0px"
class=
'panelextra pointer'
>
<i
bs-modal=
"'partials/
modal
.html'"
class=
"icon-eye-open"
></i>
<i
bs-modal=
"'partials/
inspector
.html'"
class=
"icon-eye-open"
></i>
</span>
<label
class=
"small"
>
Create new queries from
...
...
panels/derivequeries/module.js
View file @
2e85fbec
...
...
@@ -134,13 +134,7 @@ angular.module('kibana.derivequeries', [])
};
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
modal
=
{
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
dashboard
.
indices
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
,
};
$scope
.
inspector
=
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
);
};
var
update_history
=
function
(
query
)
{
...
...
panels/histogram/module.html
View file @
2e85fbec
...
...
@@ -18,7 +18,7 @@
}
</style>
<span
ng-show=
"panel.spyable"
class=
'spy panelextra pointer'
>
<i
bs-modal=
"'partials/
modal
.html'"
class=
"icon-eye-open"
></i>
<i
bs-modal=
"'partials/
inspector
.html'"
class=
"icon-eye-open"
></i>
</span>
<div>
<span
ng-show=
'panel.zoomlinks && data'
>
...
...
panels/histogram/module.js
View file @
2e85fbec
...
...
@@ -241,13 +241,7 @@ angular.module('kibana.histogram', [])
// I really don't like this function, too much dom manip. Break out into directive?
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
modal
=
{
title
:
"Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
dashboard
.
indices
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
,
};
$scope
.
inspector
=
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
);
};
$scope
.
set_refresh
=
function
(
state
)
{
...
...
panels/hits/editor.html
View file @
2e85fbec
...
...
@@ -27,4 +27,15 @@
</div>
</div>
<div
class=
"row-fluid"
ng-include=
"'partials/querySelect.html'"
></div>
<h5>
Panel Spy
</h5>
<div
class=
"row-fluid"
>
<div
class=
"span2"
>
<label
class=
"small"
>
Spyable
</label><input
type=
"checkbox"
ng-model=
"panel.spyable"
ng-checked=
"panel.spyable"
>
</div>
<div
class=
"span9 small"
>
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the
<i
class=
'icon-eye-open'
></i>
in the top right
of the panel.
</div>
</div>
</div>
panels/hits/module.html
View file @
2e85fbec
<kibana-panel
ng-controller=
'hits'
ng-init=
"init()"
>
<span
ng-show=
"panel.spyable"
class=
'spy panelextra pointer'
>
<i
bs-modal=
"'partials/inspector.html'"
class=
"icon-eye-open"
></i>
</span>
<div
ng-show=
"panel.counter_pos == 'above' && (panel.chart == 'bar' || panel.chart == 'pie')"
id=
'{{$id}}-legend'
>
<!-- vertical legend -->
<table
class=
"small"
ng-show=
"panel.arrangement == 'vertical'"
>
...
...
panels/hits/module.js
View file @
2e85fbec
...
...
@@ -38,7 +38,8 @@ angular.module('kibana.hits', [])
counter_pos
:
'above'
,
donut
:
false
,
tilt
:
false
,
labels
:
true
labels
:
true
,
spyable
:
true
};
_
.
defaults
(
$scope
.
panel
,
_d
);
...
...
@@ -77,8 +78,8 @@ angular.module('kibana.hits', [])
).
size
(
0
);
});
//
TODO: Spy for hits
panel
//$scope.populate_modal(request
);
//
Populate the inspector
panel
$scope
.
inspector
=
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
);
// Then run it
var
results
=
request
.
doSearch
();
...
...
panels/table/module.html
View file @
2e85fbec
...
...
@@ -8,7 +8,7 @@
</style>
<span
ng-show=
"panel.spyable"
style=
"position:absolute;right:0px;top:0px"
class=
'panelextra pointer'
>
<i
bs-modal=
"'partials/
modal
.html'"
class=
"icon-eye-open"
></i>
<i
bs-modal=
"'partials/
inspector
.html'"
class=
"icon-eye-open"
></i>
</span>
<div
class=
"row-fluid"
>
...
...
panels/table/module.js
View file @
2e85fbec
...
...
@@ -226,13 +226,7 @@ angular.module('kibana.table', [])
};
$scope
.
populate_modal
=
function
(
request
)
{
$scope
.
modal
=
{
title
:
"Table Inspector"
,
body
:
"<h5>Last Elasticsearch Query</h5><pre>"
+
'curl -XGET '
+
config
.
elasticsearch
+
'/'
+
dashboard
.
indices
+
"/_search?pretty -d'
\
n"
+
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
)
+
"'</pre>"
,
};
$scope
.
inspector
=
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
);
};
$scope
.
without_kibana
=
function
(
row
)
{
...
...
panels/terms/editor.html
View file @
2e85fbec
...
...
@@ -51,4 +51,15 @@
</div>
</div>
<div
class=
"row-fluid"
ng-include=
"'partials/querySelect.html'"
></div>
<h5>
Panel Spy
</h5>
<div
class=
"row-fluid"
>
<div
class=
"span2"
>
<label
class=
"small"
>
Spyable
</label><input
type=
"checkbox"
ng-model=
"panel.spyable"
ng-checked=
"panel.spyable"
>
</div>
<div
class=
"span9 small"
>
The panel spy shows 'behind the scenes' information about a panel. It can
be accessed by clicking the
<i
class=
'icon-eye-open'
></i>
in the top right
of the panel.
</div>
</div>
</div>
panels/terms/module.html
View file @
2e85fbec
<kibana-panel
ng-controller=
'terms'
ng-init=
"init()"
>
<span
ng-show=
"panel.spyable"
class=
'spy panelextra pointer'
>
<i
bs-modal=
"'partials/inspector.html'"
class=
"icon-eye-open"
></i>
</span>
<!-- START Pie or bar chart -->
<div
ng-show=
"panel.counter_pos == 'above' && (panel.chart == 'bar' || panel.chart == 'pie')"
id=
'{{$id}}-legend'
>
<!-- vertical legend above -->
...
...
panels/terms/module.js
View file @
2e85fbec
...
...
@@ -45,7 +45,8 @@ angular.module('kibana.terms', [])
labels
:
true
,
arrangement
:
'horizontal'
,
chart
:
'bar'
,
counter_pos
:
'above'
counter_pos
:
'above'
,
spyable
:
true
};
_
.
defaults
(
$scope
.
panel
,
_d
);
...
...
@@ -92,7 +93,8 @@ angular.module('kibana.terms', [])
filterSrv
.
getBoolFilter
(
filterSrv
.
ids
)
)))).
size
(
0
);
//$scope.populate_modal(request);
// Populate the inspector panel
$scope
.
inspector
=
angular
.
toJson
(
JSON
.
parse
(
request
.
toString
()),
true
);
results
=
request
.
doSearch
();
...
...
partials/inspector.html
0 → 100644
View file @
2e85fbec
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h3>
Inspector
</h3>
</div>
<div
class=
"modal-body"
>
<div>
<h5>
Last Elasticsearch Query
</h5>
<pre>
curl -XGET '{{config.elasticsearch}}/{{dashboard.indices|stringify}}/_search?pretty' -d '{{inspector}}'
</pre>
"
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-success"
ng-click=
"dismiss()"
>
Close
</button>
</div>
\ No newline at end of file
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