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
9a48b670
Commit
9a48b670
authored
May 26, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #113 from rashidkpc/master
Tweaks and bug fixed
parents
0918a263
82e40230
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
96 additions
and
31 deletions
+96
-31
common/lib/panels/jquery.flot.stack.js
+0
-1
index.html
+9
-8
js/app.js
+4
-4
js/directives.js
+2
-2
panels/histogram/editor.html
+2
-1
panels/histogram/module.js
+10
-7
panels/pie/editor.html
+4
-4
panels/timepicker/module.js
+3
-3
partials/dashboard.html
+1
-1
sample/apache_ldap.conf
+61
-0
sample/nginx.conf
+0
-0
No files found.
common/lib/panels/jquery.flot.stack.js
View file @
9a48b670
...
...
@@ -203,7 +203,6 @@ charts or filled areas).
//set percentage for stacked chart
function
processRawData
(
plot
,
series
,
data
,
datapoints
)
{
console
.
log
(
plot
)
if
(
!
processed
)
{
processed
=
true
;
stackSums
=
getStackSums
(
plot
.
getData
());
...
...
index.html
View file @
9a48b670
...
...
@@ -20,6 +20,14 @@
<link
rel=
"stylesheet"
href=
"common/css/elasticjs.css"
>
<link
rel=
"stylesheet"
href=
"common/css/timepicker.css"
>
<!-- project dependency libs -->
<script
src=
"common/lib/LAB.min.js"
></script>
<script
src=
"common/lib/underscore.min.js"
></script>
<script
src=
"common/lib/settings.js"
></script>
<script
src=
"config.js"
></script>
<script
src=
"js/app.js"
></script>
</head>
<body
ng-controller=
"DashCtrl"
ng-cloak
>
...
...
@@ -32,7 +40,7 @@
<div
class=
"container-fluid"
>
<p
class=
"navbar-text pull-right"
><small><strong>
Kibana 3
</strong>
<small>
milestone 2
</small></small></p>
<span
class=
"brand"
>
{{dashboards.title}}
</span>
<div
class=
"brand"
><i
class=
'icon-
edit
pointer'
ng-show=
'dashboards.editable'
bs-modal=
"'partials/dasheditor.html'"
></i></div>
<div
class=
"brand"
><i
class=
'icon-
cog
pointer'
ng-show=
'dashboards.editable'
bs-modal=
"'partials/dasheditor.html'"
></i></div>
</div>
</div>
</div>
...
...
@@ -43,11 +51,4 @@
</div>
</body>
<!-- project dependency libs -->
<script
src=
"common/lib/LAB.min.js"
></script>
<script
src=
"common/lib/underscore.min.js"
></script>
<script
src=
"common/lib/settings.js"
></script>
<script
src=
"config.js"
></script>
<script
src=
"js/app.js"
></script>
</html>
js/app.js
View file @
9a48b670
...
...
@@ -17,12 +17,9 @@ var modules = [
var
scripts
=
[]
var
labjs
=
$LAB
.
script
(
"common/lib/jquery-1.8.0.min.js"
)
.
wait
()
.
script
(
"common/lib/jquery-1.8.0.min.js"
)
.
script
(
"common/lib/modernizr-2.6.1.min.js"
)
.
script
(
"common/lib/underscore.min.js"
)
.
script
(
"common/lib/bootstrap.min.js"
)
.
script
(
'common/lib/datepicker.js'
)
.
script
(
'common/lib/timepicker.js'
)
.
script
(
"common/lib/angular.min.js"
)
.
script
(
"common/lib/angular-strap.min.js"
)
.
script
(
"common/lib/angular-sanitize.min.js"
)
...
...
@@ -31,6 +28,9 @@ var labjs = $LAB
.
script
(
"common/lib/moment.js"
)
.
script
(
"common/lib/shared.js"
)
.
script
(
"common/lib/filesaver.js"
)
.
script
(
"common/lib/bootstrap.min.js"
)
.
script
(
'common/lib/datepicker.js'
)
.
script
(
'common/lib/timepicker.js'
)
.
script
(
"js/services.js"
)
.
script
(
"js/controllers.js"
)
.
script
(
"js/filters.js"
)
...
...
js/directives.js
View file @
9a48b670
...
...
@@ -8,8 +8,8 @@ angular.module('kibana.directives', [])
restrict
:
'E'
,
link
:
function
(
scope
,
elem
,
attrs
)
{
var
template
=
'<img src="common/img/load.gif" class="panel-loading" ng-show="panel.loading == true">'
+
'<span class="editlink panelextra pointer" style="right:15px;top:0px" bs-modal="
\'
partials/paneleditor.html
\'
" ng-show="panel.editable != false">'
+
'<span class="small">{{panel.type}}</span> <i class="icon-
edit pointer"></i>
'
+
'
<span class="editlink panelextra pointer" style="right:15px;top:0px" bs-modal="
\'
partials/paneleditor.html
\'
" ng-show="panel.editable != false">'
+
'<span class="small">{{panel.type}}</span> <i class="icon-
cog pointer"></i>
'
+
'</span><h4>{{panel.title}}</h4>'
;
elem
.
prepend
(
$compile
(
angular
.
element
(
template
))(
scope
));
}
...
...
panels/histogram/editor.html
View file @
9a48b670
...
...
@@ -66,10 +66,11 @@
</div>
</div>
<div
class=
"row-fluid"
>
<div
class=
"span
3
"
>
<div
class=
"span
2
"
>
<label
class=
"small"
>
Time correction
</label>
<select
ng-model=
"panel.timezone"
class=
'input-small'
ng-options=
"f for f in ['browser','utc']"
></select>
</div>
<div
class=
"span1"
>
<label
class=
"small"
>
Selectable
</label><input
type=
"checkbox"
ng-model=
"panel.interactive"
ng-checked=
"panel.interactive"
></div>
<div
class=
"span2"
>
<label
class=
"small"
>
Zoom Links
</label><input
type=
"checkbox"
ng-model=
"panel.zoomlinks"
ng-checked=
"panel.zoomlinks"
/>
</div>
...
...
panels/histogram/module.js
View file @
9a48b670
...
...
@@ -31,6 +31,7 @@
* legend :: Show the legend?
* x-axis :: Show x-axis labels and grid lines
* y-axis :: Show y-axis labels and grid lines
* interactive :: Allow drag to select time range
### Group Events
#### Receives
* time :: An object containing the time range to use and the index(es) to query
...
...
@@ -64,7 +65,8 @@ angular.module('kibana.histogram', [])
legend
:
true
,
'x-axis'
:
true
,
'y-axis'
:
true
,
percentage
:
false
percentage
:
false
,
interactive
:
true
,
}
_
.
defaults
(
$scope
.
panel
,
_d
)
...
...
@@ -288,7 +290,7 @@ angular.module('kibana.histogram', [])
// Populate element
try
{
scope
.
plot
=
$
.
plot
(
elem
,
scope
.
data
,
{
var
options
=
{
legend
:
{
show
:
false
},
series
:
{
stackpercent
:
scope
.
panel
.
stack
?
scope
.
panel
.
percentage
:
false
,
...
...
@@ -317,10 +319,6 @@ angular.module('kibana.histogram', [])
label
:
"Datetime"
,
color
:
"#c8c8c8"
,
},
selection
:
{
mode
:
"x"
,
color
:
'#ccc'
},
grid
:
{
backgroundColor
:
null
,
borderWidth
:
0
,
...
...
@@ -329,7 +327,12 @@ angular.module('kibana.histogram', [])
hoverable
:
true
,
},
colors
:
[
'#86B22D'
,
'#BF6730'
,
'#1D7373'
,
'#BFB930'
,
'#BF3030'
,
'#77207D'
]
})
}
if
(
scope
.
panel
.
interactive
)
options
.
selection
=
{
mode
:
"x"
,
color
:
'#aaa'
};
scope
.
plot
=
$
.
plot
(
elem
,
scope
.
data
,
options
)
// Work around for missing legend at initialization
if
(
!
scope
.
$$phase
)
...
...
panels/pie/editor.html
View file @
9a48b670
<div
class=
"row-fluid"
ng-switch=
"panel.mode"
>
<div
ng-switch-when=
"terms"
>
<div
class=
"row-fluid"
>
<div
class=
"span3"
>
<div
class=
"span3"
>
<label
class=
"small"
>
Mode
</label>
<select
class=
"input-small"
ng-change=
"set_mode(panel.mode)"
ng-model=
"panel.mode"
ng-options=
"f for f in ['terms','goal']"
></select>
</div>
</div>
<div
ng-switch-when=
"terms"
>
<div
class=
"row-fluid"
>
<div
class=
"span3"
>
<form
style=
"margin-bottom: 0px"
>
<label
class=
"small"
>
Field
</label>
...
...
panels/timepicker/module.js
View file @
9a48b670
...
...
@@ -61,13 +61,13 @@ angular.module('kibana.timepicker', [])
switch
(
$scope
.
panel
.
mode
)
{
case
'absolute'
:
$scope
.
time
=
{
from
:
moment
(
$scope
.
panel
.
time
.
from
,
'
YYYY-MM-DD
HH:mm:ss'
)
||
moment
(
time_ago
(
$scope
.
panel
.
timespan
)),
to
:
moment
(
$scope
.
panel
.
time
.
to
,
'
YYYY-MM-DD
HH:mm:ss'
)
||
moment
()
from
:
moment
(
$scope
.
panel
.
time
.
from
,
'
MM/DD/YYYY
HH:mm:ss'
)
||
moment
(
time_ago
(
$scope
.
panel
.
timespan
)),
to
:
moment
(
$scope
.
panel
.
time
.
to
,
'
MM/DD/YYYY
HH:mm:ss'
)
||
moment
()
}
break
;
case
'since'
:
$scope
.
time
=
{
from
:
moment
(
$scope
.
panel
.
time
.
from
,
'
YYYY-MM-DD
HH:mm:ss'
)
||
moment
(
time_ago
(
$scope
.
panel
.
timespan
)),
from
:
moment
(
$scope
.
panel
.
time
.
from
,
'
MM/DD/YYYY
HH:mm:ss'
)
||
moment
(
time_ago
(
$scope
.
panel
.
timespan
)),
to
:
moment
()
}
break
;
...
...
partials/dashboard.html
View file @
9a48b670
...
...
@@ -9,7 +9,7 @@
<div
ng-show=
"row.collapsable"
>
<div
ng-class=
"{'row-open': !row.collapse, 'row-close': row.collapse}"
style=
"position:absolute;margin-left:-60px;"
>
<span
class=
'pointer'
ng-click=
"toggle_row(row)"
>
{{row.title}}
</span>
<i
ng-show=
"row.editable"
class=
"icon-
edit
pointer editlink"
bs-modal=
"'partials/roweditor.html'"
></i>
<i
ng-show=
"row.editable"
class=
"icon-
cog
pointer editlink"
bs-modal=
"'partials/roweditor.html'"
></i>
</div>
</div>
<small
ng-hide=
"row.collapsable"
class=
"rotated"
>
{{row.title}}
</small>
...
...
sample/apache_ldap.conf
0 → 100644
View file @
9a48b670
# Courtesy of https://github.com/sgzijl
# config.js includes elasticsearch: "https://"+window.location.hostname+":443",
<
VirtualHost
1
.
2
.
3
.
4
:
80
>
ServerName
your
.
domain
.
tld
RewriteEngine
On
RewriteCond
%{
HTTPS
}
off
RewriteRule
(.*)
https
://%{
HTTP_HOST
}%{
REQUEST_URI
}
</
VirtualHost
>
<
VirtualHost
1
.
2
.
3
.
4
:
443
>
ServerName
your
.
domain
.
tld
SSLEngine
on
SSLCertificateFile
/
path
/
to
/
public
.
crt
SSLCertificateKeyFile
/
path
/
to
/
private
.
key
DocumentRoot
/
path
/
to
/
kibana3
<
Directory
/
path
/
to
/
kibana3
>
Allow
from
all
Options
-
Multiviews
</
Directory
>
LogLevel
debug
ErrorLog
/
path
/
to
/
logs
/
error_log
CustomLog
/
path
/
to
/
logs
/
access_log
combined
# Set global proxy timeouts
<
Proxy
http
://
127
.
0
.
0
.
1
:
9200
>
ProxySet
connectiontimeout
=
5
timeout
=
90
</
Proxy
>
# Proxy for _aliases and .*/_search
<
LocationMatch
"^(/_aliases|.*/_search)$"
>
ProxyPass
http
://
127
.
0
.
0
.
1
:
9200
ProxyPassReverse
http
://
127
.
0
.
0
.
1
:
9200
</
LocationMatch
>
# Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected)
<
LocationMatch
"^(/kibana-int/dashboard/|/kibana-int/temp).*$"
>
ProxyPass
http
://
127
.
0
.
0
.
1
:
9200
ProxyPassReverse
http
://
127
.
0
.
0
.
1
:
9200
</
LocationMatch
>
# Optional disable auth for a src IP (eg: your monitoring host or subnet)
<
Location
/>
Allow
from
5
.
6
.
7
.
8
Deny
from
all
Satisfy
any
AuthLDAPBindDN
"CN=_ldapbinduser,OU=Users,DC=example,DC=com"
AuthLDAPBindPassword
"ldapbindpass"
AuthLDAPURL
"ldaps://ldap01.example.com ldap02.example.com/OU=Users,DC=example,DC=com?sAMAccountName?sub?(objectClass=*)"
AuthType
Basic
AuthBasicProvider
ldap
AuthName
"Please authenticate for Example dot com"
AuthLDAPGroupAttributeIsDN
on
require
valid
-
user
</
Location
>
</
VirtualHost
>
sample/
kibana
.conf
→
sample/
nginx
.conf
View file @
9a48b670
File moved
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