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
6347b9b0
Commit
6347b9b0
authored
Feb 22, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
fea6b970
afeaa9fe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
.gitignore
+1
-0
src/dashboards/scripted.js
+3
-3
src/dashboards/scripted_async.js
+4
-4
src/dashboards/scripted_gen_and_save.js
+2
-2
No files found.
.gitignore
View file @
6347b9b0
...
...
@@ -13,6 +13,7 @@ src/css/*.min.css
*.sublime-workspace
*.swp
.idea/
*.iml
/data/*
/bin/*
...
...
src/dashboards/scripted.js
View file @
6347b9b0
...
...
@@ -3,7 +3,7 @@
/*
* Complex scripted dashboard
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* supplied URL parameters (in
t
ARGS variable)
* supplied URL parameters (in
the
ARGS variable)
*
* Return a dashboard object, or a function
*
...
...
@@ -13,7 +13,7 @@
'use strict'
;
// access
a
ble variables in this scope
// access
i
ble variables in this scope
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
;
// Setup some variables
...
...
@@ -31,7 +31,7 @@ dashboard = {
dashboard
.
title
=
'Scripted dash'
;
// Set default time
// time can be overriden in the url using from/to parameter
e
s, but this is
// time can be overriden in the url using from/to parameters, but this is
// handled automatically in grafana core during dashboard initialization
dashboard
.
time
=
{
from
:
"now-6h"
,
...
...
src/dashboards/scripted_async.js
View file @
6347b9b0
...
...
@@ -3,7 +3,7 @@
/*
* Complex scripted dashboard
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* supplied URL parameters (in
t
ARGS variable)
* supplied URL parameters (in
the
ARGS variable)
*
* Global accessable variables
* window, document, $, jQuery, ARGS, moment
...
...
@@ -11,12 +11,12 @@
* Return a dashboard object, or a function
*
* For async scripts, return a function, this function must take a single callback function,
* call this function with the dasboard object
* call this function with the das
h
board object
*/
'use strict'
;
// access
a
ble variables in this scope
// access
i
ble variables in this scope
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
;
return
function
(
callback
)
{
...
...
@@ -34,7 +34,7 @@ return function(callback) {
dashboard
.
title
=
'Scripted dash'
;
// Set default time
// time can be overriden in the url using from/to parameter
e
s, but this is
// time can be overriden in the url using from/to parameters, but this is
// handled automatically in grafana core during dashboard initialization
dashboard
.
time
=
{
from
:
"now-6h"
,
...
...
src/dashboards/scripted_gen_and_save.js
View file @
6347b9b0
...
...
@@ -3,7 +3,7 @@
/*
* Complex scripted dashboard
* This script generates a dashboard object that Grafana can load. It also takes a number of user
* supplied URL parameters (in
t
ARGS variable)
* supplied URL parameters (in
the
ARGS variable)
*
* Return a dashboard object, or a function
*
...
...
@@ -13,7 +13,7 @@
'use strict'
;
// access
a
ble variables in this scope
// access
i
ble variables in this scope
var
window
,
document
,
ARGS
,
$
,
jQuery
,
moment
,
kbn
,
services
,
_
;
// default datasource
...
...
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