funktor 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
data/lib/funktor/cli/init.rb
CHANGED
@@ -24,8 +24,8 @@ Resources:
|
|
24
24
|
|
25
25
|
<%- app_worker_names.each do |worker_name| -%>
|
26
26
|
{ <% "Worker" %>
|
27
|
-
"height":
|
28
|
-
"width":
|
27
|
+
"height": 1,
|
28
|
+
"width": 24,
|
29
29
|
"y": <%= current_y %>,
|
30
30
|
"x": 0,
|
31
31
|
"type": "text",
|
@@ -33,15 +33,34 @@ Resources:
|
|
33
33
|
"markdown": "\n# <%= worker_name %>\n"
|
34
34
|
}
|
35
35
|
},
|
36
|
+
<% current_y += 1 %>
|
37
|
+
|
36
38
|
{ <% "Worker Jobs per minute" %>
|
37
|
-
"height":
|
38
|
-
"width":
|
39
|
+
"height": 2,
|
40
|
+
"width": 3,
|
39
41
|
"y": <%= current_y %>,
|
40
|
-
"x":
|
42
|
+
"x": 0,
|
43
|
+
"type": "metric",
|
44
|
+
"properties": {
|
45
|
+
"metrics": [
|
46
|
+
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ]
|
47
|
+
],
|
48
|
+
"view": "singleValue",
|
49
|
+
"region": "us-east-1",
|
50
|
+
"stat": "Sum",
|
51
|
+
"period": 60,
|
52
|
+
"sparkline": true,
|
53
|
+
"title": "<%= worker_name %> Processed/Min"
|
54
|
+
}
|
55
|
+
},
|
56
|
+
{ <% "Worker Jobs per minute" %>
|
57
|
+
"height": 2,
|
58
|
+
"width": 3,
|
59
|
+
"y": <%= current_y %>,
|
60
|
+
"x": 3,
|
41
61
|
"type": "metric",
|
42
62
|
"properties": {
|
43
63
|
"metrics": [
|
44
|
-
[ "${self:custom.funktor.DashboardNamespace}", "processed", "WorkerClassName", "<%= worker_name %>" ],
|
45
64
|
[ "${self:custom.funktor.DashboardNamespace}", "failed", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
|
46
65
|
],
|
47
66
|
"view": "singleValue",
|
@@ -49,28 +68,115 @@ Resources:
|
|
49
68
|
"stat": "Sum",
|
50
69
|
"period": 60,
|
51
70
|
"sparkline": true,
|
52
|
-
"title": "<%= worker_name %>
|
71
|
+
"title": "<%= worker_name %> Failed/Min"
|
53
72
|
}
|
54
73
|
},
|
55
|
-
{ <% "Worker
|
56
|
-
"height":
|
57
|
-
"width":
|
74
|
+
{ <% "Worker Duration Percentiles" %>
|
75
|
+
"height": 2,
|
76
|
+
"width": 3,
|
77
|
+
"y": <%= current_y %>,
|
78
|
+
"x": 6,
|
79
|
+
"type": "metric",
|
80
|
+
"properties": {
|
81
|
+
"metrics": [
|
82
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p60", "color": "#1f77b4" } ]
|
83
|
+
],
|
84
|
+
"view": "singleValue",
|
85
|
+
"region": "us-east-1",
|
86
|
+
"stat": "p60",
|
87
|
+
"period": 60,
|
88
|
+
"sparkline": true,
|
89
|
+
"title": "<%= worker_name %> p60"
|
90
|
+
}
|
91
|
+
},
|
92
|
+
{ <% "Worker Duration Percentiles" %>
|
93
|
+
"height": 2,
|
94
|
+
"width": 3,
|
95
|
+
"y": <%= current_y %>,
|
96
|
+
"x": 9,
|
97
|
+
"type": "metric",
|
98
|
+
"properties": {
|
99
|
+
"metrics": [
|
100
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p70", "color": "#ff7f0e" } ]
|
101
|
+
],
|
102
|
+
"view": "singleValue",
|
103
|
+
"region": "us-east-1",
|
104
|
+
"stat": "p70",
|
105
|
+
"period": 60,
|
106
|
+
"sparkline": true,
|
107
|
+
"title": "<%= worker_name %> p70"
|
108
|
+
}
|
109
|
+
},
|
110
|
+
{ <% "Worker Duration Percentiles" %>
|
111
|
+
"height": 2,
|
112
|
+
"width": 3,
|
58
113
|
"y": <%= current_y %>,
|
59
114
|
"x": 12,
|
60
115
|
"type": "metric",
|
61
116
|
"properties": {
|
62
117
|
"metrics": [
|
63
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "
|
64
|
-
[ "...", { "label": "p50", "stat": "p50" } ],
|
65
|
-
[ "...", { "label": "p99", "stat": "p99" } ],
|
66
|
-
[ "...", { "label": "Average", "stat": "Average" } ]
|
118
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p80", "color": "#2ca02c" } ]
|
67
119
|
],
|
68
120
|
"view": "singleValue",
|
69
121
|
"region": "us-east-1",
|
70
|
-
"stat": "
|
122
|
+
"stat": "p80",
|
71
123
|
"period": 60,
|
72
124
|
"sparkline": true,
|
73
|
-
"title": "<%= worker_name %>
|
125
|
+
"title": "<%= worker_name %> p80"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
{ <% "Worker Duration Percentiles" %>
|
129
|
+
"height": 2,
|
130
|
+
"width": 3,
|
131
|
+
"y": <%= current_y %>,
|
132
|
+
"x": 15,
|
133
|
+
"type": "metric",
|
134
|
+
"properties": {
|
135
|
+
"metrics": [
|
136
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "p90", "color": "#d62728" } ]
|
137
|
+
],
|
138
|
+
"view": "singleValue",
|
139
|
+
"region": "us-east-1",
|
140
|
+
"stat": "p90",
|
141
|
+
"period": 60,
|
142
|
+
"sparkline": true,
|
143
|
+
"title": "<%= worker_name %> p90"
|
144
|
+
}
|
145
|
+
},
|
146
|
+
{ <% "Worker Min/Max" %>
|
147
|
+
"height": 2,
|
148
|
+
"width": 3,
|
149
|
+
"y": <%= current_y %>,
|
150
|
+
"x": 18,
|
151
|
+
"type": "metric",
|
152
|
+
"properties": {
|
153
|
+
"metrics": [
|
154
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "Min" } ]
|
155
|
+
],
|
156
|
+
"view": "singleValue",
|
157
|
+
"region": "us-east-1",
|
158
|
+
"stat": "Minimum",
|
159
|
+
"period": 60,
|
160
|
+
"sparkline": true,
|
161
|
+
"title": "<%= worker_name %> Min"
|
162
|
+
}
|
163
|
+
},
|
164
|
+
{ <% "Worker Min/Max" %>
|
165
|
+
"height": 2,
|
166
|
+
"width": 3,
|
167
|
+
"y": <%= current_y %>,
|
168
|
+
"x": 21,
|
169
|
+
"type": "metric",
|
170
|
+
"properties": {
|
171
|
+
"metrics": [
|
172
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "label": "Max", "color": "#d62728" } ]
|
173
|
+
],
|
174
|
+
"view": "singleValue",
|
175
|
+
"region": "us-east-1",
|
176
|
+
"stat": "Maximum",
|
177
|
+
"period": 60,
|
178
|
+
"sparkline": true,
|
179
|
+
"title": "<%= worker_name %> Max"
|
74
180
|
}
|
75
181
|
},
|
76
182
|
<% current_y += 3 %>
|
@@ -80,7 +186,7 @@ Resources:
|
|
80
186
|
|
81
187
|
{ <% "Processed Jobs By Worker" %>
|
82
188
|
"height": 3,
|
83
|
-
"width":
|
189
|
+
"width": 3,
|
84
190
|
"y": <%= current_y %>,
|
85
191
|
"x": 0,
|
86
192
|
"type": "metric",
|
@@ -93,14 +199,17 @@ Resources:
|
|
93
199
|
"region": "us-east-1",
|
94
200
|
"title": "<%= worker_name %> Processed Jobs",
|
95
201
|
"period": 60,
|
96
|
-
"stat": "Sum"
|
202
|
+
"stat": "Sum",
|
203
|
+
"legend": {
|
204
|
+
"position": "hidden"
|
205
|
+
}
|
97
206
|
}
|
98
207
|
},
|
99
208
|
{ <% "Failed Jobs By Worker" %>
|
100
209
|
"height": 3,
|
101
|
-
"width":
|
102
|
-
"y": <%= current_y
|
103
|
-
"x":
|
210
|
+
"width": 3,
|
211
|
+
"y": <%= current_y %>,
|
212
|
+
"x": 3,
|
104
213
|
"type": "metric",
|
105
214
|
"properties": {
|
106
215
|
"metrics": [
|
@@ -111,33 +220,39 @@ Resources:
|
|
111
220
|
"region": "us-east-1",
|
112
221
|
"title": "<%= worker_name %> Failed Jobs",
|
113
222
|
"period": 60,
|
114
|
-
"stat": "Sum"
|
223
|
+
"stat": "Sum",
|
224
|
+
"legend": {
|
225
|
+
"position": "hidden"
|
226
|
+
}
|
115
227
|
}
|
116
228
|
},
|
117
229
|
{ <% "Job Duration By Worker" %>
|
118
|
-
"height":
|
230
|
+
"height": 3,
|
119
231
|
"width": 12,
|
120
232
|
"y": <%= current_y %>,
|
121
233
|
"x": 6,
|
122
234
|
"type": "metric",
|
123
235
|
"properties": {
|
124
236
|
"metrics": [
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
237
|
+
[ "funktor-testapp-dev", "Duration", "WorkerClassName", "AuditWorker", { "stat": "p90", "color": "#d62728" } ],
|
238
|
+
[ "...", { "stat": "p80", "color": "#2ca02c" } ],
|
239
|
+
[ "...", { "stat": "p70", "color": "#ff7f0e" } ],
|
240
|
+
[ "...", { "color": "#1f77b4" } ]
|
129
241
|
],
|
130
242
|
"view": "timeSeries",
|
131
243
|
"stacked": false,
|
132
244
|
"region": "us-east-1",
|
133
|
-
"stat": "
|
245
|
+
"stat": "p60",
|
134
246
|
"period": 60,
|
135
|
-
"title": "<%= worker_name %> Duration Percentiles"
|
247
|
+
"title": "<%= worker_name %> Duration Percentiles",
|
248
|
+
"legend": {
|
249
|
+
"position": "right"
|
250
|
+
}
|
136
251
|
}
|
137
252
|
},
|
138
|
-
{ <% "
|
253
|
+
{ <% "Minimum By Worker" %>
|
139
254
|
"height": 3,
|
140
|
-
"width":
|
255
|
+
"width": 3,
|
141
256
|
"y": <%= current_y %>,
|
142
257
|
"x": 18,
|
143
258
|
"type": "metric",
|
@@ -148,29 +263,36 @@ Resources:
|
|
148
263
|
"view": "timeSeries",
|
149
264
|
"stacked": false,
|
150
265
|
"region": "us-east-1",
|
151
|
-
"stat": "
|
266
|
+
"stat": "Minimum",
|
152
267
|
"period": 60,
|
153
|
-
"title": "<%= worker_name %>
|
268
|
+
"title": "<%= worker_name %> Min",
|
269
|
+
"legend": {
|
270
|
+
"position": "hidden"
|
271
|
+
}
|
154
272
|
}
|
155
273
|
},
|
156
|
-
{ <% "
|
274
|
+
{ <% "Maximum By Worker" %>
|
157
275
|
"height": 3,
|
158
|
-
"width":
|
276
|
+
"width": 3,
|
159
277
|
"y": <%= current_y %>,
|
160
|
-
"x":
|
278
|
+
"x": 21,
|
161
279
|
"type": "metric",
|
162
280
|
"properties": {
|
163
281
|
"metrics": [
|
164
|
-
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>" ]
|
282
|
+
[ "${self:custom.funktor.DashboardNamespace}", "Duration", "WorkerClassName", "<%= worker_name %>", { "color": "#d62728" } ]
|
165
283
|
],
|
166
284
|
"view": "timeSeries",
|
167
285
|
"stacked": false,
|
168
286
|
"region": "us-east-1",
|
169
|
-
"stat": "
|
287
|
+
"stat": "Maximum",
|
170
288
|
"period": 60,
|
171
|
-
"title": "<%= worker_name %>
|
289
|
+
"title": "<%= worker_name %> Max",
|
290
|
+
"legend": {
|
291
|
+
"position": "hidden"
|
292
|
+
}
|
172
293
|
}
|
173
294
|
},
|
295
|
+
|
174
296
|
<% current_y += 6 %>
|
175
297
|
<%- end -%>
|
176
298
|
|
data/lib/funktor/version.rb
CHANGED