summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2018-08-24 03:49:39 (GMT)
committerMonty Taylor <mordred@inaugust.com>2018-08-24 03:49:39 (GMT)
commit67c1f59c791a4d559e1b00851328e3c59a019596 (patch)
tree57b093aa4284b1c28ca4eb035775596ddb0f3d73
parent2a0d7e1287a035be69265eebbed53ee94eca31af (diff)
Remove jquery and task-report
task-report is hideously out of date and doesn't work. And we don't actually use jquery.
-rw-r--r--package.json1
-rw-r--r--src/js/task-report.js192
-rw-r--r--src/task-report.html26
-rw-r--r--yarn.lock4
4 files changed, 0 insertions, 223 deletions
diff --git a/package.json b/package.json
index 36b62b3..e11bfe3 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,6 @@
20 "dependencies": { 20 "dependencies": {
21 "@bower_components/bootstrap": "twbs/bootstrap#~3.3.5", 21 "@bower_components/bootstrap": "twbs/bootstrap#~3.3.5",
22 "@bower_components/font-awesome": "FortAwesome/Font-Awesome#~4.3.0", 22 "@bower_components/font-awesome": "FortAwesome/Font-Awesome#~4.3.0",
23 "@bower_components/jquery": "jquery/jquery-dist#1.9.1 - 3",
24 "font-mfizz": "^2.4.1", 23 "font-mfizz": "^2.4.1",
25 "modernizr": "^3.6.0", 24 "modernizr": "^3.6.0",
26 "reveal.js": "^3.7.0" 25 "reveal.js": "^3.7.0"
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/";
2tasks = [
3 'ServerCreate',
4 'ServerDelete',
5 'ServerList',
6 'ServerGet'
7];
8
9float_tasks = [
10 'PortList',
11 'NeutronFloatingIPList',
12 'NeutronFloatingIPCreate',
13 'NeutronFloatingIPDelete'
14]
15
16big_providers = [
17 'rax',
18 'ovh',
19]
20
21small_providers = [
22 'bluebox',
23 'internap'
24]
25
26jobs = [
27 'gate-tempest-dsvm-full',
28 'gate-tempest-dsvm-neutron-full'
29]
30
31for(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
55for(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
75for(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
153for(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}));
diff --git a/src/task-report.html b/src/task-report.html
deleted file mode 100644
index 0203d21..0000000
--- a/src/task-report.html
+++ /dev/null
@@ -1,26 +0,0 @@
1<html xmlns="http://www.w3.org/1999/xhtml"
2 xmlns:py="http://genshi.edgewall.org/"
3 lang="en">
4 <HEAD>
5 <TITLE>Task Report</TITLE>
6
7<script type="text/javascript"
8 src="http://status.openstack.org/jquery.min.js"></script>
9<script type="text/javascript"
10 src="http://status.openstack.org/jquery-visibility.min.js"></script>
11<script type="text/javascript"
12 src="http://status.openstack.org/jquery-graphite.js"></script>
13<script type="text/javascript"
14 src="http://status.openstack.org/common.js"></script>
15
16 </HEAD>
17
18 <BODY>
19
20 <div class="container" id="graph-container">
21 <h2> Job Stats </h2>
22 <script type="text/javascript" src="js/task-report.js"></script>
23 </div>
24
25 </BODY>
26</html>
diff --git a/yarn.lock b/yarn.lock
index 957f01f..11fa6d0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10,10 +10,6 @@
10 version "4.3.0" 10 version "4.3.0"
11 resolved "https://codeload.github.com/FortAwesome/Font-Awesome/tar.gz/41b9ed01103e6820c3cb043ba7ddab30ecd3f4c0" 11 resolved "https://codeload.github.com/FortAwesome/Font-Awesome/tar.gz/41b9ed01103e6820c3cb043ba7ddab30ecd3f4c0"
12 12
13"@bower_components/jquery@jquery/jquery-dist#1.9.1 - 3":
14 version "3.3.1"
15 resolved "https://codeload.github.com/jquery/jquery-dist/tar.gz/9e8ec3d10fad04748176144f108d7355662ae75e"
16
17abbrev@1: 13abbrev@1:
18 version "1.1.1" 14 version "1.1.1"
19 resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" 15 resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"