summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-11-16 15:25:55 -0500
committerMonty Taylor <mordred@inaugust.com>2015-11-16 15:25:55 -0500
commitbc5eed932880ce8f530ccab755b83055679a05e0 (patch)
tree8719709d7ba9449017ba1337a760047640d7c843
parent3efb701a73e9dd1e52801eb8b7829c75f788097f (diff)
Rearranged a bit
-rw-r--r--src/js/task-report.js35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/js/task-report.js b/src/js/task-report.js
index 82d67b1..f7d5bb6 100644
--- a/src/js/task-report.js
+++ b/src/js/task-report.js
@@ -14,9 +14,9 @@ float_tasks = [
14] 14]
15 15
16providers = [ 16providers = [
17 'bluebox',
18 'hpcloud', 17 'hpcloud',
19 'rax', 18 'rax',
19 'bluebox',
20 'ovh' 20 'ovh'
21] 21]
22 22
@@ -63,23 +63,6 @@ for(i=0; i<float_tasks.length; ++i) {
63 63
64} 64}
65 65
66 $("#graph-container").append($(new Image()).addClass('graph').graphite({
67 from: "-72hours",
68 width: 885,
69 height: 495,
70 bgcolor: 'ffffff',
71 fgcolor: '000000',
72 lineMode: 'connected',
73 title: 'Time to SSH Ready',
74 target: [
75 "alias(averageSeries(stats.timers.nodepool.launch.provider.hpcloud-b*.ready.mean), 'HP')",
76 "alias(averageSeries(stats.timers.nodepool.launch.provider.ovh-gra1.ready.mean), 'OVH')",
77 "alias(averageSeries(stats.timers.nodepool.launch.provider.bluebox-sjc1.ready.mean), 'BB')",
78 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-*.ready.mean), 'RAX')",
79 ]
80 }));
81
82
83for(i=0; i<providers.length; ++i) { 66for(i=0; i<providers.length; ++i) {
84 $("#graph-container").append($(new Image()).addClass('graph').graphite({ 67 $("#graph-container").append($(new Image()).addClass('graph').graphite({
85 from: "-72hours", 68 from: "-72hours",
@@ -113,3 +96,19 @@ for(i=0; i<jobs.length; ++i) {
113 ] 96 ]
114 })); 97 }));
115} 98}
99
100$("#graph-container").append($(new Image()).addClass('graph').graphite({
101 from: "-72hours",
102 width: 885,
103 height: 495,
104 bgcolor: 'ffffff',
105 fgcolor: '000000',
106 lineMode: 'connected',
107 title: 'Time to SSH Ready',
108 target: [
109 "alias(averageSeries(stats.timers.nodepool.launch.provider.hpcloud-b*.ready.mean), 'HP')",
110 "alias(averageSeries(stats.timers.nodepool.launch.provider.ovh-gra1.ready.mean), 'OVH')",
111 "alias(averageSeries(stats.timers.nodepool.launch.provider.bluebox-sjc1.ready.mean), 'BB')",
112 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-*.ready.mean), 'RAX')",
113 ]
114}));