Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
f7e09f5a
Commit
f7e09f5a
authored
Sep 22, 2014
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Draft of slapos monitoring
parent
553c22c9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
127 additions
and
0 deletions
+127
-0
dev/slapos_monitoring/index.html
dev/slapos_monitoring/index.html
+13
-0
dev/slapos_monitoring/slapos_monitoring.js
dev/slapos_monitoring/slapos_monitoring.js
+80
-0
dev/viewer_dygraph/dygraph-combined.js
dev/viewer_dygraph/dygraph-combined.js
+2
-0
dev/viewer_dygraph/dygraph_gadget.js
dev/viewer_dygraph/dygraph_gadget.js
+17
-0
dev/viewer_dygraph/index.html
dev/viewer_dygraph/index.html
+15
-0
No files found.
dev/slapos_monitoring/index.html
0 → 100644
View file @
f7e09f5a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Dygraph
</title>
<script
src=
"../lib/rsvp.min.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/renderjs.min.js"
type=
"text/javascript"
></script>
<script
src=
"slapos_monitoring.js"
type=
"text/javascript"
></script>
</head>
<body>
</body>
</html>
dev/slapos_monitoring/slapos_monitoring.js
0 → 100644
View file @
f7e09f5a
/*jslint nomen: true*/
/*global rJS */
(
function
(
window
,
document
,
rJS
)
{
"
use strict
"
;
var
gk
=
rJS
(
window
);
var
gadget_path_list
=
{
dygraph
:
"
../viewer_dygraph/index.html
"
};
return
gk
.
declareMethod
(
'
addChart
'
,
function
(
options
,
chart_id
)
{
var
g
=
this
;
console
.
log
(
options
.
source_url
);
var
data_source
=
options
.
source_url
+
"
/
"
+
chart_id
;
return
this
.
declareGadget
(
gadget_path_list
.
dygraph
)
.
push
(
function
(
gadget
)
{
g
.
__element
.
appendChild
(
gadget
.
__element
);
return
gadget
.
render
(
data_source
);
});
})
.
declareMethod
(
'
render
'
,
function
(
options
)
{
if
(
options
.
source_url
===
undefined
)
{
throw
"
undefined source_url
"
;
}
var
div
=
document
.
createElement
(
"
div
"
);
var
g
=
this
;
return
g
.
addChart
(
options
,
"
system_cpu_percent.csv
"
)
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_disk_memory_free__dev_sda1.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_disk_memory_free__dev_sda1.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_disk_memory_free__dev_sdb1.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_disk_memory_used__dev_sda1.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_disk_memory_used__dev_sdb1.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_loadavg.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_memory_free.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_memory_used.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_net_in_bytes.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_net_in_dropped.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_net_in_errors.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_net_out_bytes.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_net_out_dropped.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_net_out_errors.csv
"
);
})
.
push
(
function
()
{
return
g
.
addChart
(
options
,
"
system_loadavg.csv
"
);
});
});
}(
window
,
document
,
rJS
));
\ No newline at end of file
dev/viewer_dygraph/dygraph-combined.js
0 → 100644
View file @
f7e09f5a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dev/viewer_dygraph/dygraph_gadget.js
0 → 100644
View file @
f7e09f5a
/*global console, Dygraph, rJS */
/*jslint nomen: true */
(
function
(
window
,
rJS
,
Dygraph
)
{
"
use strict
"
;
rJS
(
window
)
.
declareMethod
(
'
render
'
,
function
(
data
)
{
console
.
log
(
this
.
__element
);
return
new
Dygraph
(
this
.
__element
,
data
,
{
roolPeriod
:
7
,
errorBars
:
true
}
);
});
}(
window
,
rJS
,
Dygraph
));
dev/viewer_dygraph/index.html
0 → 100644
View file @
f7e09f5a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Dygraph
</title>
<script
src=
"../lib/rsvp.min.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/renderjs.min.js"
type=
"text/javascript"
></script>
<script
src=
"dygraph-combined.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"dygraph_gadget.js"
type=
"text/javascript"
></script>
</head>
<body>
<div></div>
</body>
</html>
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