funktor 0.7.8 → 0.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,7 +144,7 @@ module Funktor
144
144
  def app_worker_names
145
145
  app_worker_files.map do |file|
146
146
  File.basename(file, ".rb").camelize
147
- end
147
+ end.sort
148
148
  end
149
149
 
150
150
  def app_worker_files
@@ -21,11 +21,133 @@ Resources:
21
21
  },
22
22
  <% current_y += 3 %>
23
23
 
24
+ { <% "Jobs/Minute Section" %>
25
+ "height": 1,
26
+ "width": 24,
27
+ "y": <%= current_y %>,
28
+ "x": 0,
29
+ "type": "text",
30
+ "properties": {
31
+ "markdown": "\n# Jobs Per Minute By Worker\n"
32
+ }
33
+ },
34
+ <% current_y += 1 %>
35
+
36
+
37
+ <%- app_worker_names.each_with_index do |worker_name, index| -%>
38
+ <%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
39
+ { <% "Processed Jobs By Worker" %>
40
+ "height": 3,
41
+ "width": 4,
42
+ "y": <%= current_y %>,
43
+ "x": <%= (index % 6) * 4 %>,
44
+ "type": "metric",
45
+ "properties": {
46
+ "metrics": [
47
+ [ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]
48
+ ],
49
+ "view": "timeSeries",
50
+ "stacked": false,
51
+ "region": "us-east-1",
52
+ "title": "<%= worker_name %> Jobs/Min",
53
+ "period": 60,
54
+ "stat": "Sum",
55
+ "legend": {
56
+ "position": "hidden"
57
+ }
58
+ }
59
+ },
60
+ <%- end -%>
61
+ <%- current_y += 3 if (app_worker_names.count - 1) % 6 != 0 %>
62
+
63
+
64
+ { <% "Failures/Minute Section" %>
65
+ "height": 1,
66
+ "width": 24,
67
+ "y": <%= current_y %>,
68
+ "x": 0,
69
+ "type": "text",
70
+ "properties": {
71
+ "markdown": "\n# Failures Per Minute By Worker\n"
72
+ }
73
+ },
74
+ <% current_y += 1 %>
75
+
76
+
77
+ <%- app_worker_names.each_with_index do |worker_name, index| -%>
78
+ <%- current_y += 3 if (index > 0 && (index % 6) == 0) %>
79
+ { <% "Failed Jobs By Worker" %>
80
+ "height": 3,
81
+ "width": 4,
82
+ "y": <%= current_y %>,
83
+ "x": <%= (index % 6) * 4 %>,
84
+ "type": "metric",
85
+ "properties": {
86
+ "metrics": [
87
+ [ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
88
+ ],
89
+ "view": "timeSeries",
90
+ "stacked": false,
91
+ "region": "us-east-1",
92
+ "title": "<%= worker_name %> Fails/Min",
93
+ "period": 60,
94
+ "stat": "Sum",
95
+ "legend": {
96
+ "position": "hidden"
97
+ }
98
+ }
99
+ },
100
+ <%- end -%>
101
+ <%- current_y += 3 if (app_worker_names.count - 1) % 6 != 0 %>
102
+
103
+
104
+ { <% "Duration Percentiles Section" %>
105
+ "height": 1,
106
+ "width": 24,
107
+ "y": <%= current_y %>,
108
+ "x": 0,
109
+ "type": "text",
110
+ "properties": {
111
+ "markdown": "\n# Duration Percentiles By Worker\n"
112
+ }
113
+ },
114
+ <% current_y += 1 %>
115
+
116
+
117
+ <%- app_worker_names.each_with_index do |worker_name, index| -%>
118
+ <%- current_y += 4 if (index > 0 && (index % 6) == 0) %>
119
+ { <% "Job Duration By Worker" %>
120
+ "height": 4,
121
+ "width": 4,
122
+ "y": <%= current_y %>,
123
+ "x": <%= (index % 6) * 4 %>,
124
+ "type": "metric",
125
+ "properties": {
126
+ "metrics": [
127
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "stat": "p90", "color": "#d62728" } ],
128
+ [ "...", { "label": "p80", "stat": "p80", "color": "#2ca02c" } ],
129
+ [ "...", { "label": "p70", "stat": "p70", "color": "#ff7f0e" } ],
130
+ [ "...", { "label": "p60", "color": "#1f77b4" } ]
131
+ ],
132
+ "view": "timeSeries",
133
+ "stacked": false,
134
+ "region": "us-east-1",
135
+ "stat": "p60",
136
+ "period": 60,
137
+ "title": "<%= worker_name %> Duration Percentiles",
138
+ "legend": {
139
+ "position": "bottom"
140
+ }
141
+ }
142
+ },
143
+ <%- end -%>
144
+ <%- current_y += 3 if (app_worker_names.count - 1) % 6 != 0 %>
145
+
24
146
 
25
147
  <%- app_worker_names.each do |worker_name| -%>
26
148
  { <% "Worker" %>
27
- "height": 3,
28
- "width": 6,
149
+ "height": 1,
150
+ "width": 24,
29
151
  "y": <%= current_y %>,
30
152
  "x": 0,
31
153
  "type": "text",
@@ -33,44 +155,150 @@ Resources:
33
155
  "markdown": "\n# <%= worker_name %>\n"
34
156
  }
35
157
  },
158
+ <% current_y += 1 %>
159
+
36
160
  { <% "Worker Jobs per minute" %>
37
- "height": 3,
38
- "width": 6,
161
+ "height": 2,
162
+ "width": 3,
39
163
  "y": <%= current_y %>,
40
- "x": 6,
164
+ "x": 0,
165
+ "type": "metric",
166
+ "properties": {
167
+ "metrics": [
168
+ [ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]
169
+ ],
170
+ "view": "singleValue",
171
+ "region": "us-east-1",
172
+ "stat": "Sum",
173
+ "period": 60,
174
+ "sparkline": false,
175
+ "title": "<%= worker_name %> Processed/Min"
176
+ }
177
+ },
178
+ { <% "Worker Jobs per minute" %>
179
+ "height": 2,
180
+ "width": 3,
181
+ "y": <%= current_y %>,
182
+ "x": 3,
41
183
  "type": "metric",
42
184
  "properties": {
43
185
  "metrics": [
44
- [ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ],
45
186
  [ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
46
187
  ],
47
188
  "view": "singleValue",
48
189
  "region": "us-east-1",
49
190
  "stat": "Sum",
50
191
  "period": 60,
51
- "sparkline": true,
52
- "title": "<%= worker_name %> Jobs Per Minute"
192
+ "sparkline": false,
193
+ "title": "<%= worker_name %> Failed/Min"
53
194
  }
54
195
  },
55
- { <% "Worker Durations" %>
56
- "height": 3,
57
- "width": 12,
196
+ { <% "Worker Duration Percentiles" %>
197
+ "height": 2,
198
+ "width": 3,
199
+ "y": <%= current_y %>,
200
+ "x": 6,
201
+ "type": "metric",
202
+ "properties": {
203
+ "metrics": [
204
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p60", "color": "#1f77b4" } ]
205
+ ],
206
+ "view": "singleValue",
207
+ "region": "us-east-1",
208
+ "stat": "p60",
209
+ "period": 60,
210
+ "sparkline": false,
211
+ "title": "<%= worker_name %> p60"
212
+ }
213
+ },
214
+ { <% "Worker Duration Percentiles" %>
215
+ "height": 2,
216
+ "width": 3,
217
+ "y": <%= current_y %>,
218
+ "x": 9,
219
+ "type": "metric",
220
+ "properties": {
221
+ "metrics": [
222
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p70", "color": "#ff7f0e" } ]
223
+ ],
224
+ "view": "singleValue",
225
+ "region": "us-east-1",
226
+ "stat": "p70",
227
+ "period": 60,
228
+ "sparkline": false,
229
+ "title": "<%= worker_name %> p70"
230
+ }
231
+ },
232
+ { <% "Worker Duration Percentiles" %>
233
+ "height": 2,
234
+ "width": 3,
58
235
  "y": <%= current_y %>,
59
236
  "x": 12,
60
237
  "type": "metric",
61
238
  "properties": {
62
239
  "metrics": [
63
- [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p10" } ],
64
- [ "...", { "label": "p50", "stat": "p50" } ],
65
- [ "...", { "label": "p99", "stat": "p99" } ],
66
- [ "...", { "label": "Average", "stat": "Average" } ]
240
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p80", "color": "#2ca02c" } ]
67
241
  ],
68
242
  "view": "singleValue",
69
243
  "region": "us-east-1",
70
- "stat": "p10",
244
+ "stat": "p80",
71
245
  "period": 60,
72
- "sparkline": true,
73
- "title": "<%= worker_name %> Duration"
246
+ "sparkline": false,
247
+ "title": "<%= worker_name %> p80"
248
+ }
249
+ },
250
+ { <% "Worker Duration Percentiles" %>
251
+ "height": 2,
252
+ "width": 3,
253
+ "y": <%= current_y %>,
254
+ "x": 15,
255
+ "type": "metric",
256
+ "properties": {
257
+ "metrics": [
258
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "color": "#d62728" } ]
259
+ ],
260
+ "view": "singleValue",
261
+ "region": "us-east-1",
262
+ "stat": "p90",
263
+ "period": 60,
264
+ "sparkline": false,
265
+ "title": "<%= worker_name %> p90"
266
+ }
267
+ },
268
+ { <% "Worker Min/Max" %>
269
+ "height": 2,
270
+ "width": 3,
271
+ "y": <%= current_y %>,
272
+ "x": 18,
273
+ "type": "metric",
274
+ "properties": {
275
+ "metrics": [
276
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "Min" } ]
277
+ ],
278
+ "view": "singleValue",
279
+ "region": "us-east-1",
280
+ "stat": "Minimum",
281
+ "period": 60,
282
+ "sparkline": false,
283
+ "title": "<%= worker_name %> Min"
284
+ }
285
+ },
286
+ { <% "Worker Min/Max" %>
287
+ "height": 2,
288
+ "width": 3,
289
+ "y": <%= current_y %>,
290
+ "x": 21,
291
+ "type": "metric",
292
+ "properties": {
293
+ "metrics": [
294
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "Max", "color": "#d62728" } ]
295
+ ],
296
+ "view": "singleValue",
297
+ "region": "us-east-1",
298
+ "stat": "Maximum",
299
+ "period": 60,
300
+ "sparkline": false,
301
+ "title": "<%= worker_name %> Max"
74
302
  }
75
303
  },
76
304
  <% current_y += 3 %>
@@ -80,7 +308,7 @@ Resources:
80
308
 
81
309
  { <% "Processed Jobs By Worker" %>
82
310
  "height": 3,
83
- "width": 6,
311
+ "width": 3,
84
312
  "y": <%= current_y %>,
85
313
  "x": 0,
86
314
  "type": "metric",
@@ -93,14 +321,17 @@ Resources:
93
321
  "region": "us-east-1",
94
322
  "title": "<%= worker_name %> Processed Jobs",
95
323
  "period": 60,
96
- "stat": "Sum"
324
+ "stat": "Sum",
325
+ "legend": {
326
+ "position": "hidden"
327
+ }
97
328
  }
98
329
  },
99
330
  { <% "Failed Jobs By Worker" %>
100
331
  "height": 3,
101
- "width": 6,
102
- "y": <%= current_y + 3 %>,
103
- "x": 0,
332
+ "width": 3,
333
+ "y": <%= current_y %>,
334
+ "x": 3,
104
335
  "type": "metric",
105
336
  "properties": {
106
337
  "metrics": [
@@ -111,33 +342,39 @@ Resources:
111
342
  "region": "us-east-1",
112
343
  "title": "<%= worker_name %> Failed Jobs",
113
344
  "period": 60,
114
- "stat": "Sum"
345
+ "stat": "Sum",
346
+ "legend": {
347
+ "position": "hidden"
348
+ }
115
349
  }
116
350
  },
117
351
  { <% "Job Duration By Worker" %>
118
- "height": 6,
352
+ "height": 3,
119
353
  "width": 12,
120
354
  "y": <%= current_y %>,
121
355
  "x": 6,
122
356
  "type": "metric",
123
357
  "properties": {
124
358
  "metrics": [
125
- [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ],
126
- [ "...", { "stat": "p80" } ],
127
- [ "...", { "stat": "p70" } ],
128
- [ "...", { "stat": "p60" } ]
359
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "stat": "p90", "color": "#d62728" } ],
360
+ [ "...", { "stat": "p80", "color": "#2ca02c" } ],
361
+ [ "...", { "stat": "p70", "color": "#ff7f0e" } ],
362
+ [ "...", { "color": "#1f77b4" } ]
129
363
  ],
130
364
  "view": "timeSeries",
131
365
  "stacked": false,
132
366
  "region": "us-east-1",
133
- "stat": "p90",
367
+ "stat": "p60",
134
368
  "period": 60,
135
- "title": "<%= worker_name %> Duration Percentiles"
369
+ "title": "<%= worker_name %> Duration Percentiles",
370
+ "legend": {
371
+ "position": "right"
372
+ }
136
373
  }
137
374
  },
138
- { <% "Maximum By Worker" %>
375
+ { <% "Minimum By Worker" %>
139
376
  "height": 3,
140
- "width": 6,
377
+ "width": 3,
141
378
  "y": <%= current_y %>,
142
379
  "x": 18,
143
380
  "type": "metric",
@@ -148,29 +385,36 @@ Resources:
148
385
  "view": "timeSeries",
149
386
  "stacked": false,
150
387
  "region": "us-east-1",
151
- "stat": "Maximum",
388
+ "stat": "Minimum",
152
389
  "period": 60,
153
- "title": "<%= worker_name %> Max"
390
+ "title": "<%= worker_name %> Min",
391
+ "legend": {
392
+ "position": "hidden"
393
+ }
154
394
  }
155
395
  },
156
- { <% "Minimum By Worker" %>
396
+ { <% "Maximum By Worker" %>
157
397
  "height": 3,
158
- "width": 6,
398
+ "width": 3,
159
399
  "y": <%= current_y %>,
160
- "x": 18,
400
+ "x": 21,
161
401
  "type": "metric",
162
402
  "properties": {
163
403
  "metrics": [
164
- [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]
404
+ [ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
165
405
  ],
166
406
  "view": "timeSeries",
167
407
  "stacked": false,
168
408
  "region": "us-east-1",
169
- "stat": "Minimum",
409
+ "stat": "Maximum",
170
410
  "period": 60,
171
- "title": "<%= worker_name %> Min"
411
+ "title": "<%= worker_name %> Max",
412
+ "legend": {
413
+ "position": "hidden"
414
+ }
172
415
  }
173
416
  },
417
+
174
418
  <% current_y += 6 %>
175
419
  <%- end -%>
176
420
 
@@ -1,3 +1,3 @@
1
1
  module Funktor
2
- VERSION = "0.7.8"
2
+ VERSION = "0.7.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funktor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green