diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/task-report.js | 192 |
1 files changed, 0 insertions, 192 deletions
diff --git a/src/js/task-report.js b/src/js/task-report.js deleted file mode 100644 index 06e1ec4..0000000 --- a/src/js/task-report.js +++ /dev/null | |||
@@ -1,192 +0,0 @@ | |||
1 | $.fn.graphite.defaults.url = "http://graphite.openstack.org/render/"; | ||
2 | tasks = [ | ||
3 | 'ServerCreate', | ||
4 | 'ServerDelete', | ||
5 | 'ServerList', | ||
6 | 'ServerGet' | ||
7 | ]; | ||
8 | |||
9 | float_tasks = [ | ||
10 | 'PortList', | ||
11 | 'NeutronFloatingIPList', | ||
12 | 'NeutronFloatingIPCreate', | ||
13 | 'NeutronFloatingIPDelete' | ||
14 | ] | ||
15 | |||
16 | big_providers = [ | ||
17 | 'rax', | ||
18 | 'ovh', | ||
19 | ] | ||
20 | |||
21 | small_providers = [ | ||
22 | 'bluebox', | ||
23 | 'internap' | ||
24 | ] | ||
25 | |||
26 | jobs = [ | ||
27 | 'gate-tempest-dsvm-full', | ||
28 | 'gate-tempest-dsvm-neutron-full' | ||
29 | ] | ||
30 | |||
31 | for(i=0; i<tasks.length; ++i) { | ||
32 | |||
33 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
34 | from: "-72hours", | ||
35 | width: 885, | ||
36 | height: 495, | ||
37 | bgcolor: 'ffffff', | ||
38 | fgcolor: '000000', | ||
39 | lineMode: 'connected', | ||
40 | vtitle: 'Time in Seconds', | ||
41 | yMax: '7', | ||
42 | title: tasks[i], | ||
43 | target: [ | ||
44 | "alias(scale(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + tasks[i] + ".mean), '0.001'), 'BB')", | ||
45 | "alias(scale(averageSeries(stats.timers.nodepool.task.ovh-gra1." + tasks[i] + ".mean), '0.001'), 'OVH')", | ||
46 | "alias(scale(averageSeries(stats.timers.nodepool.task.rax-*." + tasks[i] + ".mean), '0.001'), 'RAX')", | ||
47 | "alias(scale(averageSeries(stats.timers.nodepool.task.internap-*." + tasks[i] + ".mean), '0.001'), 'INAP')", | ||
48 | "alias(scale(averageSeries(stats.timers.nodepool.task.vexx*." + tasks[i] + ".mean), '0.001'), 'VEXX')", | ||
49 | "alias(scale(averageSeries(stats.timers.nodepool.task.osic*." + tasks[i] + ".mean), '0.001'), 'OSIC')", | ||
50 | ] | ||
51 | })); | ||
52 | |||
53 | } | ||
54 | |||
55 | for(i=0; i<float_tasks.length; ++i) { | ||
56 | |||
57 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
58 | from: "-72hours", | ||
59 | width: 885, | ||
60 | height: 495, | ||
61 | bgcolor: 'ffffff', | ||
62 | fgcolor: '000000', | ||
63 | lineMode: 'connected', | ||
64 | vtitle: 'Time in Seconds', | ||
65 | yMax: '3', | ||
66 | title: float_tasks[i], | ||
67 | target: [ | ||
68 | "alias(scale(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + float_tasks[i] + ".mean), '0.001'), 'BB')", | ||
69 | "alias(scale(averageSeries(stats.timers.nodepool.task.osic-cloud1." + float_tasks[i] + ".mean), '0.001'), 'OSIC')", | ||
70 | ] | ||
71 | })); | ||
72 | |||
73 | } | ||
74 | |||
75 | for(i=0; i<big_providers.length; ++i) { | ||
76 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
77 | from: "-72hours", | ||
78 | width: 885, | ||
79 | height: 495, | ||
80 | bgcolor: 'ffffff', | ||
81 | fgcolor: '000000', | ||
82 | areaMode: 'stacked', | ||
83 | yMax: '800', | ||
84 | title: big_providers[i] + " nodes launched", | ||
85 | target: [ | ||
86 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + big_providers[i] + "*.ready), '1h'), 'Ready'), '00ff22')", | ||
87 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + big_providers[i] + "*.error.*), '1h'), 'Error'), 'ff0000')" | ||
88 | ] | ||
89 | })); | ||
90 | |||
91 | } | ||
92 | |||
93 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
94 | from: "-72hours", | ||
95 | width: 885, | ||
96 | height: 495, | ||
97 | bgcolor: 'ffffff', | ||
98 | fgcolor: '000000', | ||
99 | areaMode: 'stacked', | ||
100 | yMax: '100', | ||
101 | title: "Blue Box nodes launched", | ||
102 | target: [ | ||
103 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.bluebox*.ready), '1h'), 'Ready'), '00ff22')", | ||
104 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.bluebox*.error.*), '1h'), 'Error'), 'ff0000')" | ||
105 | ] | ||
106 | })); | ||
107 | |||
108 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
109 | from: "-72hours", | ||
110 | width: 885, | ||
111 | height: 495, | ||
112 | bgcolor: 'ffffff', | ||
113 | fgcolor: '000000', | ||
114 | areaMode: 'stacked', | ||
115 | yMax: '100', | ||
116 | title: "Vexxhost nodes launched", | ||
117 | target: [ | ||
118 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.vexx*.ready), '1h'), 'Ready'), '00ff22')", | ||
119 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.vexx*.error.*), '1h'), 'Error'), 'ff0000')" | ||
120 | ] | ||
121 | })); | ||
122 | |||
123 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
124 | from: "-72hours", | ||
125 | width: 885, | ||
126 | height: 495, | ||
127 | bgcolor: 'ffffff', | ||
128 | fgcolor: '000000', | ||
129 | areaMode: 'stacked', | ||
130 | yMax: '400', | ||
131 | title: "OSIC nodes launched", | ||
132 | target: [ | ||
133 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.osic*.ready), '1h'), 'Ready'), '00ff22')", | ||
134 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.osic*.error.*), '1h'), 'Error'), 'ff0000')" | ||
135 | ] | ||
136 | })); | ||
137 | |||
138 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
139 | from: "-72hours", | ||
140 | width: 885, | ||
141 | height: 495, | ||
142 | bgcolor: 'ffffff', | ||
143 | fgcolor: '000000', | ||
144 | areaMode: 'stacked', | ||
145 | yMax: '200', | ||
146 | title: "Internap nodes launched", | ||
147 | target: [ | ||
148 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.internap*.ready), '1h'), 'Ready'), '00ff22')", | ||
149 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider.internap*.error.*), '1h'), 'Error'), 'ff0000')" | ||
150 | ] | ||
151 | })); | ||
152 | |||
153 | for(i=0; i<jobs.length; ++i) { | ||
154 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
155 | from: "-72hours", | ||
156 | width: 885, | ||
157 | height: 495, | ||
158 | bgcolor: 'ffffff', | ||
159 | fgcolor: '000000', | ||
160 | lineMode: 'connected', | ||
161 | vtitle: 'Time in Minute', | ||
162 | yMax: '90', | ||
163 | title: jobs[i] + ' job runtime', | ||
164 | target: [ | ||
165 | "alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.bluebox-sjc1.runtime.mean), '0.000016'), 'BB')", | ||
166 | "alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.ovh-gra1.runtime.mean), '0.000016'), 'OVH')", | ||
167 | "alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.rax-*.runtime.mean), '0.000016'), 'RAX')", | ||
168 | "alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.internap-*.runtime.mean), '0.000016'), 'INAP')", | ||
169 | "alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.vexx*.runtime.mean), '0.000016'), 'VEXX')", | ||
170 | "alias(scale(averageSeries(stats.timers.nodepool.job." + jobs[i] + ".master.*.osic*.runtime.mean), '0.000016'), 'OSIC')", | ||
171 | ] | ||
172 | })); | ||
173 | } | ||
174 | |||
175 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
176 | from: "-72hours", | ||
177 | width: 885, | ||
178 | height: 495, | ||
179 | bgcolor: 'ffffff', | ||
180 | fgcolor: '000000', | ||
181 | lineMode: 'connected', | ||
182 | vtitle: 'Time in Minutes', | ||
183 | title: 'Time to SSH Ready', | ||
184 | target: [ | ||
185 | "alias(scale(averageSeries(stats.timers.nodepool.launch.provider.bluebox-sjc1.ready.mean), '0.000016'), 'BB')", | ||
186 | "alias(scale(averageSeries(stats.timers.nodepool.launch.provider.ovh-gra1.ready.mean), '0.000016'), 'OVH')", | ||
187 | "alias(scale(averageSeries(stats.timers.nodepool.launch.provider.rax-*.ready.mean), '0.000016'), 'RAX')", | ||
188 | "alias(scale(averageSeries(stats.timers.nodepool.launch.provider.internap-*.ready.mean), '0.000016'), 'INAP')", | ||
189 | "alias(scale(averageSeries(stats.timers.nodepool.launch.provider.vexx*.ready.mean), '0.000016'), 'VEXX')", | ||
190 | "alias(scale(averageSeries(stats.timers.nodepool.launch.provider.osic*.ready.mean), '0.000016'), 'OSIC')", | ||
191 | ] | ||
192 | })); | ||