summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-11-16 14:24:02 -0500
committerMonty Taylor <mordred@inaugust.com>2015-11-16 14:24:02 -0500
commitba7fd89a3f387329f4e8ff4ad85925fd46361cae (patch)
treebd9a5d08c0ea2f5a9575f2f8de6b301ba58279a2
parent4dfd2edcc25f68c6f3dcfab5cc432a7c3d30aac1 (diff)
Split JS and HTML in task report
-rw-r--r--src/task-report.html132
-rw-r--r--src/task-report.js125
2 files changed, 126 insertions, 131 deletions
diff --git a/src/task-report.html b/src/task-report.html
index c4538ba..af4d66e 100644
--- a/src/task-report.html
+++ b/src/task-report.html
@@ -12,8 +12,6 @@
12 src="http://status.openstack.org/jquery-graphite.js"></script> 12 src="http://status.openstack.org/jquery-graphite.js"></script>
13<script type="text/javascript" 13<script type="text/javascript"
14 src="http://status.openstack.org/common.js"></script> 14 src="http://status.openstack.org/common.js"></script>
15<script type="text/javascript"
16 src="status.js"></script>
17 15
18 </HEAD> 16 </HEAD>
19 17
@@ -21,135 +19,7 @@
21 19
22 <div class="container" id="graph-container"> 20 <div class="container" id="graph-container">
23 <h2> Job Stats </h2> 21 <h2> Job Stats </h2>
24 22 <script type="text/javascript" src="task-report.js"></script>
25 <script type="text/javascript">
26$.fn.graphite.defaults.url = "http://graphite.openstack.org/render/";
27tasks = [
28 'CreateServer',
29 'DeleteServer',
30 'ListServers'
31];
32
33float_tasks = [
34 'AddFloatingIP',
35 'CreateFloatingIP',
36 'DeleteFloatingIP',
37 'GetFloatingIP',
38 'ListFloatingIPs'
39]
40
41providers = [
42 'bluebox',
43 'hpcloud',
44 'rax',
45 'tripleo',
46 'ovh'
47]
48
49jobs = [
50 'gate-tempest-dsvm-full',
51 'gate-tempest-dsvm-neutron-full'
52]
53
54for(i=0; i<tasks.length; ++i) {
55
56 $("#graph-container").append($(new Image()).addClass('graph').graphite({
57 from: "-72hours",
58 width: 885,
59 height: 495,
60 bgcolor: 'ffffff',
61 fgcolor: '000000',
62 lineMode: 'connected',
63 title: tasks[i],
64 target: [
65 "alias(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + tasks[i] + "Task.mean), 'HP')",
66 "alias(averageSeries(stats.timers.nodepool.task.ovh-gra1." + tasks[i] + "Task.mean), 'OVH')",
67 "alias(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + tasks[i] + "Task.mean), 'BB')",
68 "alias(averageSeries(stats.timers.nodepool.task.rax-dfw." + tasks[i] + "Task.mean), 'DFW')",
69 "alias(averageSeries(stats.timers.nodepool.task.rax-iad." + tasks[i] + "Task.mean), 'IAD')",
70 "alias(averageSeries(stats.timers.nodepool.task.rax-ord." + tasks[i] + "Task.mean), 'ORD')",
71 "alias(averageSeries(stats.timers.nodepool.task.tripleo-test-cloud-rh1." + tasks[i] + "Task.mean), 'TripleO')"
72 ]
73 }));
74
75}
76
77for(i=0; i<float_tasks.length; ++i) {
78
79 $("#graph-container").append($(new Image()).addClass('graph').graphite({
80 from: "-72hours",
81 width: 885,
82 height: 495,
83 bgcolor: 'ffffff',
84 fgcolor: '000000',
85 lineMode: 'connected',
86 title: float_tasks[i],
87 target: [
88 "alias(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + float_tasks[i] + "Task.mean), 'HP')",
89 "alias(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + float_tasks[i] + "Task.mean), 'BB')",
90 "alias(averageSeries(stats.timers.nodepool.task.tripleo-test-cloud-rh1*." + float_tasks[i] + "Task.mean), 'TripleO')"
91 ]
92 }));
93
94}
95
96 $("#graph-container").append($(new Image()).addClass('graph').graphite({
97 from: "-72hours",
98 width: 885,
99 height: 495,
100 bgcolor: 'ffffff',
101 fgcolor: '000000',
102 lineMode: 'connected',
103 title: 'Time to SSH Ready',
104 target: [
105 "alias(averageSeries(stats.timers.nodepool.launch.provider.hpcloud-b*.ready.mean), 'HP')",
106 "alias(averageSeries(stats.timers.nodepool.launch.provider.ovh-gra1.ready.mean), 'OVH')",
107 "alias(averageSeries(stats.timers.nodepool.launch.provider.bluebox-sjc1.ready.mean), 'BB')",
108 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-dfw.ready.mean), 'RAX DFW')",
109 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-iad.ready.mean), 'RAX IAD')",
110 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-ord.ready.mean), 'RAX ORD')",
111 "alias(averageSeries(stats.timers.nodepool.launch.provider.tripleo-test-cloud-rh1.ready.mean), 'TripleO')"
112 ]
113 }));
114
115
116for(i=0; i<providers.length; ++i) {
117 $("#graph-container").append($(new Image()).addClass('graph').graphite({
118 from: "-72hours",
119 width: 885,
120 height: 495,
121 bgcolor: 'ffffff',
122 fgcolor: '000000',
123 areaMode: 'stacked',
124 title: providers[i] + " nodes launched",
125 target: [
126 "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + providers[i] + "*.ready), '1h'), 'Ready'), '00ff22')",
127 "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + providers[i] + "*.error.*), '1h'), 'Error'), 'ff0000')"
128 ]
129 }));
130
131}
132
133for(i=0; i<jobs.length; ++i) {
134 $("#graph-container").append($(new Image()).addClass('graph').graphite({
135 from: "-72hours",
136 width: 885,
137 height: 495,
138 bgcolor: 'ffffff',
139 fgcolor: '000000',
140 lineMode: 'connected',
141 title: jobs[i] + ' job runtime',
142 target: [
143 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.hpcloud-b*.runtime.mean), 'HP')",
144 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.ovh-gra1.runtime.mean), 'OVH')",
145 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-dfw.runtime.mean), 'RAX DFW')",
146 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-iad.runtime.mean), 'RAX IAD')",
147 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-ord.runtime.mean), 'RAX ORD')"
148 ]
149 }));
150}
151
152 </script>
153 </div> 23 </div>
154 24
155 </BODY> 25 </BODY>
diff --git a/src/task-report.js b/src/task-report.js
new file mode 100644
index 0000000..d68f6c3
--- /dev/null
+++ b/src/task-report.js
@@ -0,0 +1,125 @@
1$.fn.graphite.defaults.url = "http://graphite.openstack.org/render/";
2tasks = [
3 'CreateServer',
4 'DeleteServer',
5 'ListServers'
6];
7
8float_tasks = [
9 'AddFloatingIP',
10 'CreateFloatingIP',
11 'DeleteFloatingIP',
12 'GetFloatingIP',
13 'ListFloatingIPs'
14]
15
16providers = [
17 'bluebox',
18 'hpcloud',
19 'rax',
20 'tripleo',
21 'ovh'
22]
23
24jobs = [
25 'gate-tempest-dsvm-full',
26 'gate-tempest-dsvm-neutron-full'
27]
28
29for(i=0; i<tasks.length; ++i) {
30
31 $("#graph-container").append($(new Image()).addClass('graph').graphite({
32 from: "-72hours",
33 width: 885,
34 height: 495,
35 bgcolor: 'ffffff',
36 fgcolor: '000000',
37 lineMode: 'connected',
38 title: tasks[i],
39 target: [
40 "alias(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + tasks[i] + "Task.mean), 'HP')",
41 "alias(averageSeries(stats.timers.nodepool.task.ovh-gra1." + tasks[i] + "Task.mean), 'OVH')",
42 "alias(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + tasks[i] + "Task.mean), 'BB')",
43 "alias(averageSeries(stats.timers.nodepool.task.rax-dfw." + tasks[i] + "Task.mean), 'DFW')",
44 "alias(averageSeries(stats.timers.nodepool.task.rax-iad." + tasks[i] + "Task.mean), 'IAD')",
45 "alias(averageSeries(stats.timers.nodepool.task.rax-ord." + tasks[i] + "Task.mean), 'ORD')",
46 "alias(averageSeries(stats.timers.nodepool.task.tripleo-test-cloud-rh1." + tasks[i] + "Task.mean), 'TripleO')"
47 ]
48 }));
49
50}
51
52for(i=0; i<float_tasks.length; ++i) {
53
54 $("#graph-container").append($(new Image()).addClass('graph').graphite({
55 from: "-72hours",
56 width: 885,
57 height: 495,
58 bgcolor: 'ffffff',
59 fgcolor: '000000',
60 lineMode: 'connected',
61 title: float_tasks[i],
62 target: [
63 "alias(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + float_tasks[i] + "Task.mean), 'HP')",
64 "alias(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + float_tasks[i] + "Task.mean), 'BB')",
65 "alias(averageSeries(stats.timers.nodepool.task.tripleo-test-cloud-rh1*." + float_tasks[i] + "Task.mean), 'TripleO')"
66 ]
67 }));
68
69}
70
71 $("#graph-container").append($(new Image()).addClass('graph').graphite({
72 from: "-72hours",
73 width: 885,
74 height: 495,
75 bgcolor: 'ffffff',
76 fgcolor: '000000',
77 lineMode: 'connected',
78 title: 'Time to SSH Ready',
79 target: [
80 "alias(averageSeries(stats.timers.nodepool.launch.provider.hpcloud-b*.ready.mean), 'HP')",
81 "alias(averageSeries(stats.timers.nodepool.launch.provider.ovh-gra1.ready.mean), 'OVH')",
82 "alias(averageSeries(stats.timers.nodepool.launch.provider.bluebox-sjc1.ready.mean), 'BB')",
83 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-dfw.ready.mean), 'RAX DFW')",
84 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-iad.ready.mean), 'RAX IAD')",
85 "alias(averageSeries(stats.timers.nodepool.launch.provider.rax-ord.ready.mean), 'RAX ORD')",
86 "alias(averageSeries(stats.timers.nodepool.launch.provider.tripleo-test-cloud-rh1.ready.mean), 'TripleO')"
87 ]
88 }));
89
90
91for(i=0; i<providers.length; ++i) {
92 $("#graph-container").append($(new Image()).addClass('graph').graphite({
93 from: "-72hours",
94 width: 885,
95 height: 495,
96 bgcolor: 'ffffff',
97 fgcolor: '000000',
98 areaMode: 'stacked',
99 title: providers[i] + " nodes launched",
100 target: [
101 "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + providers[i] + "*.ready), '1h'), 'Ready'), '00ff22')",
102 "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + providers[i] + "*.error.*), '1h'), 'Error'), 'ff0000')"
103 ]
104 }));
105
106}
107
108for(i=0; i<jobs.length; ++i) {
109 $("#graph-container").append($(new Image()).addClass('graph').graphite({
110 from: "-72hours",
111 width: 885,
112 height: 495,
113 bgcolor: 'ffffff',
114 fgcolor: '000000',
115 lineMode: 'connected',
116 title: jobs[i] + ' job runtime',
117 target: [
118 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.hpcloud-b*.runtime.mean), 'HP')",
119 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.ovh-gra1.runtime.mean), 'OVH')",
120 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-dfw.runtime.mean), 'RAX DFW')",
121 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-iad.runtime.mean), 'RAX IAD')",
122 "alias(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-ord.runtime.mean), 'RAX ORD')"
123 ]
124 }));
125}