diff options
author | Monty Taylor <mordred@inaugust.com> | 2015-11-16 14:24:02 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2015-11-16 14:24:02 -0500 |
commit | ba7fd89a3f387329f4e8ff4ad85925fd46361cae (patch) | |
tree | bd9a5d08c0ea2f5a9575f2f8de6b301ba58279a2 /src/task-report.html | |
parent | 4dfd2edcc25f68c6f3dcfab5cc432a7c3d30aac1 (diff) |
Split JS and HTML in task report
Diffstat (limited to 'src/task-report.html')
-rw-r--r-- | src/task-report.html | 132 |
1 files changed, 1 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/"; | ||
27 | tasks = [ | ||
28 | 'CreateServer', | ||
29 | 'DeleteServer', | ||
30 | 'ListServers' | ||
31 | ]; | ||
32 | |||
33 | float_tasks = [ | ||
34 | 'AddFloatingIP', | ||
35 | 'CreateFloatingIP', | ||
36 | 'DeleteFloatingIP', | ||
37 | 'GetFloatingIP', | ||
38 | 'ListFloatingIPs' | ||
39 | ] | ||
40 | |||
41 | providers = [ | ||
42 | 'bluebox', | ||
43 | 'hpcloud', | ||
44 | 'rax', | ||
45 | 'tripleo', | ||
46 | 'ovh' | ||
47 | ] | ||
48 | |||
49 | jobs = [ | ||
50 | 'gate-tempest-dsvm-full', | ||
51 | 'gate-tempest-dsvm-neutron-full' | ||
52 | ] | ||
53 | |||
54 | for(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 | |||
77 | for(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 | |||
116 | for(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 | |||
133 | for(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> |