diff options
author | Monty Taylor <mordred@inaugust.com> | 2015-11-19 09:51:45 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2015-11-19 09:51:45 -0500 |
commit | f124256efec2c5a4b3955b839f976df96a0162c3 (patch) | |
tree | 605717de27d02cd6e2874b2d926c15a10e0e0e50 /src/js | |
parent | 6ae7eda2a75eee9f5f59d7707f2cdc24b5cb36b5 (diff) |
Gave this consistent scales and titles
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/task-report.js | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/src/js/task-report.js b/src/js/task-report.js index b45f523..2485d6f 100644 --- a/src/js/task-report.js +++ b/src/js/task-report.js | |||
@@ -13,9 +13,12 @@ float_tasks = [ | |||
13 | 'ListFloatingIPs' | 13 | 'ListFloatingIPs' |
14 | ] | 14 | ] |
15 | 15 | ||
16 | providers = [ | 16 | big_providers = [ |
17 | 'hpcloud', | 17 | 'hpcloud', |
18 | 'rax', | 18 | 'rax', |
19 | ] | ||
20 | |||
21 | small_providers = [ | ||
19 | 'bluebox', | 22 | 'bluebox', |
20 | 'ovh' | 23 | 'ovh' |
21 | ] | 24 | ] |
@@ -34,12 +37,13 @@ for(i=0; i<tasks.length; ++i) { | |||
34 | bgcolor: 'ffffff', | 37 | bgcolor: 'ffffff', |
35 | fgcolor: '000000', | 38 | fgcolor: '000000', |
36 | lineMode: 'connected', | 39 | lineMode: 'connected', |
40 | vtitle: 'Time in Seconds', | ||
37 | title: tasks[i], | 41 | title: tasks[i], |
38 | target: [ | 42 | target: [ |
39 | "alias(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + tasks[i] + "Task.mean), 'HP')", | 43 | "alias(scale(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + tasks[i] + "Task.mean), '0.001'), 'HP')", |
40 | "alias(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + tasks[i] + "Task.mean), 'BB')", | 44 | "alias(scale(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + tasks[i] + "Task.mean), '0.001'), 'BB')", |
41 | "alias(averageSeries(stats.timers.nodepool.task.ovh-gra1." + tasks[i] + "Task.mean), 'OVH')", | 45 | "alias(scale(averageSeries(stats.timers.nodepool.task.ovh-gra1." + tasks[i] + "Task.mean), '0.001'), 'OVH')", |
42 | "alias(averageSeries(stats.timers.nodepool.task.rax-*." + tasks[i] + "Task.mean), 'RAX')", | 46 | "alias(scale(averageSeries(stats.timers.nodepool.task.rax-*." + tasks[i] + "Task.mean), '0.001'), 'RAX')", |
43 | ] | 47 | ] |
44 | })); | 48 | })); |
45 | 49 | ||
@@ -54,16 +58,36 @@ for(i=0; i<float_tasks.length; ++i) { | |||
54 | bgcolor: 'ffffff', | 58 | bgcolor: 'ffffff', |
55 | fgcolor: '000000', | 59 | fgcolor: '000000', |
56 | lineMode: 'connected', | 60 | lineMode: 'connected', |
61 | vtitle: 'Time in Seconds', | ||
62 | yMax: '10', | ||
57 | title: float_tasks[i], | 63 | title: float_tasks[i], |
58 | target: [ | 64 | target: [ |
59 | "alias(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + float_tasks[i] + "Task.mean), 'HP')", | 65 | "alias(scale(averageSeries(stats.timers.nodepool.task.hpcloud-b*." + float_tasks[i] + "Task.mean), '0.001'), 'HP')", |
60 | "alias(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + float_tasks[i] + "Task.mean), 'BB')", | 66 | "alias(scale(averageSeries(stats.timers.nodepool.task.bluebox-sjc1." + float_tasks[i] + "Task.mean), '0.001'), 'BB')", |
67 | ] | ||
68 | })); | ||
69 | |||
70 | } | ||
71 | |||
72 | for(i=0; i<big_providers.length; ++i) { | ||
73 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | ||
74 | from: "-72hours", | ||
75 | width: 885, | ||
76 | height: 495, | ||
77 | bgcolor: 'ffffff', | ||
78 | fgcolor: '000000', | ||
79 | areaMode: 'stacked', | ||
80 | yMax: '800', | ||
81 | title: big_providers[i] + " nodes launched", | ||
82 | target: [ | ||
83 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + big_providers[i] + "*.ready), '1h'), 'Ready'), '00ff22')", | ||
84 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + big_providers[i] + "*.error.*), '1h'), 'Error'), 'ff0000')" | ||
61 | ] | 85 | ] |
62 | })); | 86 | })); |
63 | 87 | ||
64 | } | 88 | } |
65 | 89 | ||
66 | for(i=0; i<providers.length; ++i) { | 90 | for(i=0; i<small_providers.length; ++i) { |
67 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ | 91 | $("#graph-container").append($(new Image()).addClass('graph').graphite({ |
68 | from: "-72hours", | 92 | from: "-72hours", |
69 | width: 885, | 93 | width: 885, |
@@ -71,10 +95,11 @@ for(i=0; i<providers.length; ++i) { | |||
71 | bgcolor: 'ffffff', | 95 | bgcolor: 'ffffff', |
72 | fgcolor: '000000', | 96 | fgcolor: '000000', |
73 | areaMode: 'stacked', | 97 | areaMode: 'stacked', |
74 | title: providers[i] + " nodes launched", | 98 | yMax: '25', |
99 | title: small_providers[i] + " nodes launched", | ||
75 | target: [ | 100 | target: [ |
76 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + providers[i] + "*.ready), '1h'), 'Ready'), '00ff22')", | 101 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + small_providers[i] + "*.ready), '1h'), 'Ready'), '00ff22')", |
77 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + providers[i] + "*.error.*), '1h'), 'Error'), 'ff0000')" | 102 | "color(alias(summarize(sumSeries(stats_counts.nodepool.launch.provider." + small_providers[i] + "*.error.*), '1h'), 'Error'), 'ff0000')" |
78 | ] | 103 | ] |
79 | })); | 104 | })); |
80 | 105 | ||