influxdb-rails 1.0.1.beta2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop.yml +18 -0
- data/.github/workflows/spec.yml +32 -0
- data/.rubocop.yml +36 -7
- data/CHANGELOG.md +22 -1
- data/README.md +43 -34
- data/gemfiles/Gemfile.rails-6.0.x +1 -2
- data/gemfiles/Gemfile.rails-6.1.x +9 -0
- data/influxdb-rails.gemspec +2 -2
- data/lib/influxdb/rails/middleware/active_job_subscriber.rb +11 -11
- data/lib/influxdb/rails/middleware/request_subscriber.rb +9 -1
- data/lib/influxdb/rails/railtie.rb +0 -1
- data/lib/influxdb/rails/sql/normalizer.rb +3 -3
- data/lib/influxdb/rails/tags.rb +2 -2
- data/lib/influxdb/rails/values.rb +1 -1
- data/lib/influxdb/rails/version.rb +1 -1
- data/lib/influxdb-rails.rb +1 -2
- data/lib/rails/generators/influxdb/templates/initializer.rb +4 -0
- data/sample-dashboard/Dockerfile +2 -2
- data/sample-dashboard/README.md +21 -28
- data/sample-dashboard/Rakefile +10 -5
- data/sample-dashboard/Ruby On Rails ActiveJob.json +600 -0
- data/sample-dashboard/{Ruby On Rails Performance (per Action).json → Ruby On Rails Performance per Action.json } +343 -589
- data/sample-dashboard/{Ruby On Rails Performance (per Request).json → Ruby On Rails Performance per Request.json } +361 -211
- data/sample-dashboard/Ruby On Rails Performance.json +1347 -1139
- data/sample-dashboard/Ruby On Rails Requests.json +834 -0
- data/sample-dashboard/Ruby On Rails Slowlog by Action.json +278 -0
- data/sample-dashboard/Ruby On Rails Slowlog by Request.json +277 -0
- data/sample-dashboard/Ruby On Rails Slowlog by SQL.json +328 -0
- data/sample-dashboard/docker-compose.yml +6 -1
- data/sample-dashboard/provisioning/activejob.json +600 -0
- data/sample-dashboard/provisioning/performance-action.json +334 -580
- data/sample-dashboard/provisioning/performance-request.json +355 -205
- data/sample-dashboard/provisioning/performance.json +1336 -1128
- data/sample-dashboard/provisioning/requests.json +834 -0
- data/sample-dashboard/provisioning/slowlog-action.json +278 -0
- data/sample-dashboard/provisioning/slowlog-requests.json +277 -0
- data/sample-dashboard/provisioning/slowlog-sql.json +328 -0
- data/spec/requests/action_controller_metrics_spec.rb +24 -10
- data/spec/requests/action_mailer_deliver_metrics_spec.rb +4 -11
- data/spec/requests/action_view_collection_metrics_spec.rb +7 -16
- data/spec/requests/action_view_partial_metrics_spec.rb +6 -15
- data/spec/requests/action_view_template_metrics_spec.rb +6 -15
- data/spec/requests/active_job_enqueue_metrics_spec.rb +6 -15
- data/spec/requests/active_job_perform_metrics_spec.rb +5 -11
- data/spec/requests/active_record_instantiation_metrics_spec.rb +7 -16
- data/spec/requests/active_record_sql_metrics_spec.rb +13 -29
- data/spec/requests/block_inistrumentation_spec.rb +8 -17
- data/spec/requests/context_spec.rb +1 -1
- data/spec/requests/logger_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -1
- data/spec/support/rails5/app.rb +3 -4
- data/spec/support/rails6/app.rb +3 -4
- data/spec/unit/tags.rb +47 -0
- metadata +25 -14
- data/.travis.yml +0 -28
- data/spec/requests/active_job_perform_start_metrics_spec.rb +0 -68
|
@@ -0,0 +1,834 @@
|
|
|
1
|
+
{
|
|
2
|
+
"__inputs": [
|
|
3
|
+
{
|
|
4
|
+
"name": "DS_INFLUXDB-RAILS",
|
|
5
|
+
"label": "InfluxDB-Rails",
|
|
6
|
+
"description": "",
|
|
7
|
+
"type": "datasource",
|
|
8
|
+
"pluginId": "influxdb",
|
|
9
|
+
"pluginName": "InfluxDB"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"__requires": [
|
|
13
|
+
{
|
|
14
|
+
"type": "grafana",
|
|
15
|
+
"id": "grafana",
|
|
16
|
+
"name": "Grafana",
|
|
17
|
+
"version": "7.1.1"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "panel",
|
|
21
|
+
"id": "graph",
|
|
22
|
+
"name": "Graph",
|
|
23
|
+
"version": ""
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "datasource",
|
|
27
|
+
"id": "influxdb",
|
|
28
|
+
"name": "InfluxDB",
|
|
29
|
+
"version": "1.0.0"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"annotations": {
|
|
33
|
+
"list": [
|
|
34
|
+
{
|
|
35
|
+
"builtIn": 1,
|
|
36
|
+
"datasource": "-- Grafana --",
|
|
37
|
+
"enable": true,
|
|
38
|
+
"hide": true,
|
|
39
|
+
"iconColor": "rgba(0, 211, 255, 1)",
|
|
40
|
+
"name": "Annotations & Alerts",
|
|
41
|
+
"type": "dashboard"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"editable": true,
|
|
46
|
+
"gnetId": null,
|
|
47
|
+
"graphTooltip": 0,
|
|
48
|
+
"id": null,
|
|
49
|
+
"iteration": 1616428850617,
|
|
50
|
+
"links": [
|
|
51
|
+
{
|
|
52
|
+
"$$hashKey": "object:55",
|
|
53
|
+
"icon": "external link",
|
|
54
|
+
"includeVars": true,
|
|
55
|
+
"keepTime": true,
|
|
56
|
+
"tags": [
|
|
57
|
+
"influxdb-rails"
|
|
58
|
+
],
|
|
59
|
+
"type": "dashboards"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"panels": [
|
|
63
|
+
{
|
|
64
|
+
"aliasColors": {},
|
|
65
|
+
"bars": false,
|
|
66
|
+
"dashLength": 10,
|
|
67
|
+
"dashes": false,
|
|
68
|
+
"datasource": "InfluxDB",
|
|
69
|
+
"description": "",
|
|
70
|
+
"fieldConfig": {
|
|
71
|
+
"defaults": {
|
|
72
|
+
"custom": {}
|
|
73
|
+
},
|
|
74
|
+
"overrides": []
|
|
75
|
+
},
|
|
76
|
+
"fill": 1,
|
|
77
|
+
"fillGradient": 0,
|
|
78
|
+
"gridPos": {
|
|
79
|
+
"h": 9,
|
|
80
|
+
"w": 12,
|
|
81
|
+
"x": 0,
|
|
82
|
+
"y": 0
|
|
83
|
+
},
|
|
84
|
+
"hiddenSeries": false,
|
|
85
|
+
"id": 12,
|
|
86
|
+
"legend": {
|
|
87
|
+
"avg": false,
|
|
88
|
+
"current": false,
|
|
89
|
+
"max": false,
|
|
90
|
+
"min": false,
|
|
91
|
+
"show": true,
|
|
92
|
+
"total": true,
|
|
93
|
+
"values": true
|
|
94
|
+
},
|
|
95
|
+
"lines": true,
|
|
96
|
+
"linewidth": 1,
|
|
97
|
+
"nullPointMode": "null",
|
|
98
|
+
"percentage": false,
|
|
99
|
+
"pluginVersion": "7.1.1",
|
|
100
|
+
"pointradius": 2,
|
|
101
|
+
"points": false,
|
|
102
|
+
"renderer": "flot",
|
|
103
|
+
"seriesOverrides": [],
|
|
104
|
+
"spaceLength": 10,
|
|
105
|
+
"stack": false,
|
|
106
|
+
"steppedLine": false,
|
|
107
|
+
"targets": [
|
|
108
|
+
{
|
|
109
|
+
"alias": "$tag_exception",
|
|
110
|
+
"groupBy": [
|
|
111
|
+
{
|
|
112
|
+
"params": [
|
|
113
|
+
"$per"
|
|
114
|
+
],
|
|
115
|
+
"type": "time"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"params": [
|
|
119
|
+
"exception"
|
|
120
|
+
],
|
|
121
|
+
"type": "tag"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"measurement": "rails",
|
|
125
|
+
"orderByTime": "ASC",
|
|
126
|
+
"policy": "default",
|
|
127
|
+
"refId": "A",
|
|
128
|
+
"resultFormat": "time_series",
|
|
129
|
+
"select": [
|
|
130
|
+
[
|
|
131
|
+
{
|
|
132
|
+
"params": [
|
|
133
|
+
"controller"
|
|
134
|
+
],
|
|
135
|
+
"type": "field"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"params": [],
|
|
139
|
+
"type": "count"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
],
|
|
143
|
+
"tags": [
|
|
144
|
+
{
|
|
145
|
+
"key": "hook",
|
|
146
|
+
"operator": "=",
|
|
147
|
+
"value": "process_action"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"condition": "AND",
|
|
151
|
+
"key": "exception",
|
|
152
|
+
"operator": "=~",
|
|
153
|
+
"value": "/\\w/"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"thresholds": [],
|
|
159
|
+
"timeFrom": null,
|
|
160
|
+
"timeRegions": [],
|
|
161
|
+
"timeShift": null,
|
|
162
|
+
"title": "Exceptions",
|
|
163
|
+
"tooltip": {
|
|
164
|
+
"shared": true,
|
|
165
|
+
"sort": 0,
|
|
166
|
+
"value_type": "individual"
|
|
167
|
+
},
|
|
168
|
+
"type": "graph",
|
|
169
|
+
"xaxis": {
|
|
170
|
+
"buckets": null,
|
|
171
|
+
"mode": "time",
|
|
172
|
+
"name": null,
|
|
173
|
+
"show": true,
|
|
174
|
+
"values": []
|
|
175
|
+
},
|
|
176
|
+
"yaxes": [
|
|
177
|
+
{
|
|
178
|
+
"decimals": 0,
|
|
179
|
+
"format": "short",
|
|
180
|
+
"label": null,
|
|
181
|
+
"logBase": 1,
|
|
182
|
+
"max": null,
|
|
183
|
+
"min": null,
|
|
184
|
+
"show": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"format": "short",
|
|
188
|
+
"label": null,
|
|
189
|
+
"logBase": 1,
|
|
190
|
+
"max": null,
|
|
191
|
+
"min": null,
|
|
192
|
+
"show": false
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"yaxis": {
|
|
196
|
+
"align": false,
|
|
197
|
+
"alignLevel": null
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"aliasColors": {},
|
|
202
|
+
"bars": false,
|
|
203
|
+
"dashLength": 10,
|
|
204
|
+
"dashes": false,
|
|
205
|
+
"datasource": "InfluxDB",
|
|
206
|
+
"description": "",
|
|
207
|
+
"fieldConfig": {
|
|
208
|
+
"defaults": {
|
|
209
|
+
"custom": {}
|
|
210
|
+
},
|
|
211
|
+
"overrides": []
|
|
212
|
+
},
|
|
213
|
+
"fill": 1,
|
|
214
|
+
"fillGradient": 0,
|
|
215
|
+
"gridPos": {
|
|
216
|
+
"h": 9,
|
|
217
|
+
"w": 12,
|
|
218
|
+
"x": 12,
|
|
219
|
+
"y": 0
|
|
220
|
+
},
|
|
221
|
+
"hiddenSeries": false,
|
|
222
|
+
"id": 10,
|
|
223
|
+
"legend": {
|
|
224
|
+
"avg": false,
|
|
225
|
+
"current": false,
|
|
226
|
+
"max": false,
|
|
227
|
+
"min": false,
|
|
228
|
+
"show": true,
|
|
229
|
+
"total": true,
|
|
230
|
+
"values": true
|
|
231
|
+
},
|
|
232
|
+
"lines": true,
|
|
233
|
+
"linewidth": 1,
|
|
234
|
+
"nullPointMode": "null",
|
|
235
|
+
"percentage": false,
|
|
236
|
+
"pluginVersion": "7.1.1",
|
|
237
|
+
"pointradius": 2,
|
|
238
|
+
"points": false,
|
|
239
|
+
"renderer": "flot",
|
|
240
|
+
"seriesOverrides": [],
|
|
241
|
+
"spaceLength": 10,
|
|
242
|
+
"stack": false,
|
|
243
|
+
"steppedLine": false,
|
|
244
|
+
"targets": [
|
|
245
|
+
{
|
|
246
|
+
"alias": "$tag_http_method",
|
|
247
|
+
"groupBy": [
|
|
248
|
+
{
|
|
249
|
+
"params": [
|
|
250
|
+
"$per"
|
|
251
|
+
],
|
|
252
|
+
"type": "time"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"params": [
|
|
256
|
+
"http_method"
|
|
257
|
+
],
|
|
258
|
+
"type": "tag"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"measurement": "rails",
|
|
262
|
+
"orderByTime": "ASC",
|
|
263
|
+
"policy": "default",
|
|
264
|
+
"refId": "A",
|
|
265
|
+
"resultFormat": "time_series",
|
|
266
|
+
"select": [
|
|
267
|
+
[
|
|
268
|
+
{
|
|
269
|
+
"params": [
|
|
270
|
+
"controller"
|
|
271
|
+
],
|
|
272
|
+
"type": "field"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"params": [],
|
|
276
|
+
"type": "count"
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
],
|
|
280
|
+
"tags": [
|
|
281
|
+
{
|
|
282
|
+
"key": "hook",
|
|
283
|
+
"operator": "=",
|
|
284
|
+
"value": "process_action"
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
],
|
|
289
|
+
"thresholds": [],
|
|
290
|
+
"timeFrom": null,
|
|
291
|
+
"timeRegions": [],
|
|
292
|
+
"timeShift": null,
|
|
293
|
+
"title": "Methods",
|
|
294
|
+
"tooltip": {
|
|
295
|
+
"shared": true,
|
|
296
|
+
"sort": 0,
|
|
297
|
+
"value_type": "individual"
|
|
298
|
+
},
|
|
299
|
+
"type": "graph",
|
|
300
|
+
"xaxis": {
|
|
301
|
+
"buckets": null,
|
|
302
|
+
"mode": "time",
|
|
303
|
+
"name": null,
|
|
304
|
+
"show": true,
|
|
305
|
+
"values": []
|
|
306
|
+
},
|
|
307
|
+
"yaxes": [
|
|
308
|
+
{
|
|
309
|
+
"format": "short",
|
|
310
|
+
"label": null,
|
|
311
|
+
"logBase": 2,
|
|
312
|
+
"max": null,
|
|
313
|
+
"min": null,
|
|
314
|
+
"show": true
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"format": "short",
|
|
318
|
+
"label": null,
|
|
319
|
+
"logBase": 1,
|
|
320
|
+
"max": null,
|
|
321
|
+
"min": null,
|
|
322
|
+
"show": false
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"yaxis": {
|
|
326
|
+
"align": false,
|
|
327
|
+
"alignLevel": null
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"aliasColors": {},
|
|
332
|
+
"bars": false,
|
|
333
|
+
"dashLength": 10,
|
|
334
|
+
"dashes": false,
|
|
335
|
+
"datasource": "InfluxDB",
|
|
336
|
+
"fieldConfig": {
|
|
337
|
+
"defaults": {
|
|
338
|
+
"custom": {}
|
|
339
|
+
},
|
|
340
|
+
"overrides": []
|
|
341
|
+
},
|
|
342
|
+
"fill": 1,
|
|
343
|
+
"fillGradient": 0,
|
|
344
|
+
"gridPos": {
|
|
345
|
+
"h": 9,
|
|
346
|
+
"w": 12,
|
|
347
|
+
"x": 0,
|
|
348
|
+
"y": 9
|
|
349
|
+
},
|
|
350
|
+
"hiddenSeries": false,
|
|
351
|
+
"id": 13,
|
|
352
|
+
"legend": {
|
|
353
|
+
"avg": false,
|
|
354
|
+
"current": false,
|
|
355
|
+
"max": false,
|
|
356
|
+
"min": false,
|
|
357
|
+
"show": true,
|
|
358
|
+
"total": true,
|
|
359
|
+
"values": true
|
|
360
|
+
},
|
|
361
|
+
"lines": true,
|
|
362
|
+
"linewidth": 1,
|
|
363
|
+
"nullPointMode": "null",
|
|
364
|
+
"percentage": false,
|
|
365
|
+
"pluginVersion": "7.1.1",
|
|
366
|
+
"pointradius": 2,
|
|
367
|
+
"points": false,
|
|
368
|
+
"renderer": "flot",
|
|
369
|
+
"seriesOverrides": [
|
|
370
|
+
{
|
|
371
|
+
"alias": "Value",
|
|
372
|
+
"hideTooltip": true,
|
|
373
|
+
"legend": false
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"spaceLength": 10,
|
|
377
|
+
"stack": false,
|
|
378
|
+
"steppedLine": false,
|
|
379
|
+
"targets": [
|
|
380
|
+
{
|
|
381
|
+
"alias": "$tag_status",
|
|
382
|
+
"groupBy": [
|
|
383
|
+
{
|
|
384
|
+
"params": [
|
|
385
|
+
"$per"
|
|
386
|
+
],
|
|
387
|
+
"type": "time"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"params": [
|
|
391
|
+
"status"
|
|
392
|
+
],
|
|
393
|
+
"type": "tag"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
"measurement": "rails",
|
|
397
|
+
"orderByTime": "ASC",
|
|
398
|
+
"policy": "default",
|
|
399
|
+
"refId": "A",
|
|
400
|
+
"resultFormat": "time_series",
|
|
401
|
+
"select": [
|
|
402
|
+
[
|
|
403
|
+
{
|
|
404
|
+
"params": [
|
|
405
|
+
"controller"
|
|
406
|
+
],
|
|
407
|
+
"type": "field"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"params": [],
|
|
411
|
+
"type": "count"
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
],
|
|
415
|
+
"tags": [
|
|
416
|
+
{
|
|
417
|
+
"key": "hook",
|
|
418
|
+
"operator": "=",
|
|
419
|
+
"value": "process_action"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"thresholds": [],
|
|
425
|
+
"timeFrom": null,
|
|
426
|
+
"timeRegions": [],
|
|
427
|
+
"timeShift": null,
|
|
428
|
+
"title": "HTTP Status",
|
|
429
|
+
"tooltip": {
|
|
430
|
+
"shared": true,
|
|
431
|
+
"sort": 0,
|
|
432
|
+
"value_type": "individual"
|
|
433
|
+
},
|
|
434
|
+
"type": "graph",
|
|
435
|
+
"xaxis": {
|
|
436
|
+
"buckets": null,
|
|
437
|
+
"mode": "time",
|
|
438
|
+
"name": null,
|
|
439
|
+
"show": true,
|
|
440
|
+
"values": []
|
|
441
|
+
},
|
|
442
|
+
"yaxes": [
|
|
443
|
+
{
|
|
444
|
+
"format": "short",
|
|
445
|
+
"label": null,
|
|
446
|
+
"logBase": 2,
|
|
447
|
+
"max": null,
|
|
448
|
+
"min": null,
|
|
449
|
+
"show": true
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"format": "short",
|
|
453
|
+
"label": null,
|
|
454
|
+
"logBase": 1,
|
|
455
|
+
"max": null,
|
|
456
|
+
"min": null,
|
|
457
|
+
"show": false
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"yaxis": {
|
|
461
|
+
"align": false,
|
|
462
|
+
"alignLevel": null
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"aliasColors": {},
|
|
467
|
+
"bars": false,
|
|
468
|
+
"dashLength": 10,
|
|
469
|
+
"dashes": false,
|
|
470
|
+
"datasource": "InfluxDB",
|
|
471
|
+
"description": "",
|
|
472
|
+
"fieldConfig": {
|
|
473
|
+
"defaults": {
|
|
474
|
+
"custom": {}
|
|
475
|
+
},
|
|
476
|
+
"overrides": []
|
|
477
|
+
},
|
|
478
|
+
"fill": 1,
|
|
479
|
+
"fillGradient": 0,
|
|
480
|
+
"gridPos": {
|
|
481
|
+
"h": 9,
|
|
482
|
+
"w": 12,
|
|
483
|
+
"x": 12,
|
|
484
|
+
"y": 9
|
|
485
|
+
},
|
|
486
|
+
"hiddenSeries": false,
|
|
487
|
+
"id": 8,
|
|
488
|
+
"legend": {
|
|
489
|
+
"avg": false,
|
|
490
|
+
"current": false,
|
|
491
|
+
"max": false,
|
|
492
|
+
"min": false,
|
|
493
|
+
"show": true,
|
|
494
|
+
"total": true,
|
|
495
|
+
"values": true
|
|
496
|
+
},
|
|
497
|
+
"lines": true,
|
|
498
|
+
"linewidth": 1,
|
|
499
|
+
"nullPointMode": "null",
|
|
500
|
+
"percentage": false,
|
|
501
|
+
"pluginVersion": "7.1.1",
|
|
502
|
+
"pointradius": 2,
|
|
503
|
+
"points": false,
|
|
504
|
+
"renderer": "flot",
|
|
505
|
+
"seriesOverrides": [],
|
|
506
|
+
"spaceLength": 10,
|
|
507
|
+
"stack": false,
|
|
508
|
+
"steppedLine": false,
|
|
509
|
+
"targets": [
|
|
510
|
+
{
|
|
511
|
+
"alias": "$tag_format",
|
|
512
|
+
"groupBy": [
|
|
513
|
+
{
|
|
514
|
+
"params": [
|
|
515
|
+
"$per"
|
|
516
|
+
],
|
|
517
|
+
"type": "time"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"params": [
|
|
521
|
+
"format"
|
|
522
|
+
],
|
|
523
|
+
"type": "tag"
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"measurement": "rails",
|
|
527
|
+
"orderByTime": "ASC",
|
|
528
|
+
"policy": "default",
|
|
529
|
+
"refId": "A",
|
|
530
|
+
"resultFormat": "time_series",
|
|
531
|
+
"select": [
|
|
532
|
+
[
|
|
533
|
+
{
|
|
534
|
+
"params": [
|
|
535
|
+
"controller"
|
|
536
|
+
],
|
|
537
|
+
"type": "field"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"params": [],
|
|
541
|
+
"type": "count"
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
],
|
|
545
|
+
"tags": [
|
|
546
|
+
{
|
|
547
|
+
"key": "hook",
|
|
548
|
+
"operator": "=",
|
|
549
|
+
"value": "process_action"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"condition": "AND",
|
|
553
|
+
"key": "format",
|
|
554
|
+
"operator": "=~",
|
|
555
|
+
"value": "/\\w/"
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
"thresholds": [],
|
|
561
|
+
"timeFrom": null,
|
|
562
|
+
"timeRegions": [],
|
|
563
|
+
"timeShift": null,
|
|
564
|
+
"title": "Format",
|
|
565
|
+
"tooltip": {
|
|
566
|
+
"shared": true,
|
|
567
|
+
"sort": 0,
|
|
568
|
+
"value_type": "individual"
|
|
569
|
+
},
|
|
570
|
+
"type": "graph",
|
|
571
|
+
"xaxis": {
|
|
572
|
+
"buckets": null,
|
|
573
|
+
"mode": "time",
|
|
574
|
+
"name": null,
|
|
575
|
+
"show": true,
|
|
576
|
+
"values": []
|
|
577
|
+
},
|
|
578
|
+
"yaxes": [
|
|
579
|
+
{
|
|
580
|
+
"format": "short",
|
|
581
|
+
"label": null,
|
|
582
|
+
"logBase": 2,
|
|
583
|
+
"max": null,
|
|
584
|
+
"min": null,
|
|
585
|
+
"show": true
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"format": "short",
|
|
589
|
+
"label": null,
|
|
590
|
+
"logBase": 1,
|
|
591
|
+
"max": null,
|
|
592
|
+
"min": null,
|
|
593
|
+
"show": true
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"yaxis": {
|
|
597
|
+
"align": false,
|
|
598
|
+
"alignLevel": null
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"aliasColors": {},
|
|
603
|
+
"bars": true,
|
|
604
|
+
"dashLength": 10,
|
|
605
|
+
"dashes": false,
|
|
606
|
+
"datasource": "InfluxDB",
|
|
607
|
+
"fieldConfig": {
|
|
608
|
+
"defaults": {
|
|
609
|
+
"custom": {}
|
|
610
|
+
},
|
|
611
|
+
"overrides": []
|
|
612
|
+
},
|
|
613
|
+
"fill": 1,
|
|
614
|
+
"fillGradient": 0,
|
|
615
|
+
"gridPos": {
|
|
616
|
+
"h": 22,
|
|
617
|
+
"w": 24,
|
|
618
|
+
"x": 0,
|
|
619
|
+
"y": 18
|
|
620
|
+
},
|
|
621
|
+
"hiddenSeries": false,
|
|
622
|
+
"id": 15,
|
|
623
|
+
"legend": {
|
|
624
|
+
"alignAsTable": true,
|
|
625
|
+
"avg": false,
|
|
626
|
+
"current": false,
|
|
627
|
+
"hideEmpty": true,
|
|
628
|
+
"max": false,
|
|
629
|
+
"min": false,
|
|
630
|
+
"rightSide": true,
|
|
631
|
+
"show": true,
|
|
632
|
+
"sort": "total",
|
|
633
|
+
"sortDesc": true,
|
|
634
|
+
"total": true,
|
|
635
|
+
"values": true
|
|
636
|
+
},
|
|
637
|
+
"lines": false,
|
|
638
|
+
"linewidth": 1,
|
|
639
|
+
"nullPointMode": "null",
|
|
640
|
+
"percentage": false,
|
|
641
|
+
"pluginVersion": "7.1.1",
|
|
642
|
+
"pointradius": 2,
|
|
643
|
+
"points": false,
|
|
644
|
+
"renderer": "flot",
|
|
645
|
+
"seriesOverrides": [],
|
|
646
|
+
"spaceLength": 10,
|
|
647
|
+
"stack": true,
|
|
648
|
+
"steppedLine": false,
|
|
649
|
+
"targets": [
|
|
650
|
+
{
|
|
651
|
+
"alias": "$tag_location",
|
|
652
|
+
"groupBy": [
|
|
653
|
+
{
|
|
654
|
+
"params": [
|
|
655
|
+
"$per"
|
|
656
|
+
],
|
|
657
|
+
"type": "time"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"params": [
|
|
661
|
+
"location"
|
|
662
|
+
],
|
|
663
|
+
"type": "tag"
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
"measurement": "rails",
|
|
667
|
+
"orderByTime": "ASC",
|
|
668
|
+
"policy": "default",
|
|
669
|
+
"refId": "A",
|
|
670
|
+
"resultFormat": "time_series",
|
|
671
|
+
"select": [
|
|
672
|
+
[
|
|
673
|
+
{
|
|
674
|
+
"params": [
|
|
675
|
+
"controller"
|
|
676
|
+
],
|
|
677
|
+
"type": "field"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"params": [],
|
|
681
|
+
"type": "count"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
],
|
|
685
|
+
"tags": [
|
|
686
|
+
{
|
|
687
|
+
"key": "hook",
|
|
688
|
+
"operator": "=",
|
|
689
|
+
"value": "process_action"
|
|
690
|
+
}
|
|
691
|
+
]
|
|
692
|
+
}
|
|
693
|
+
],
|
|
694
|
+
"thresholds": [],
|
|
695
|
+
"timeFrom": null,
|
|
696
|
+
"timeRegions": [],
|
|
697
|
+
"timeShift": null,
|
|
698
|
+
"title": "Actions",
|
|
699
|
+
"tooltip": {
|
|
700
|
+
"shared": true,
|
|
701
|
+
"sort": 0,
|
|
702
|
+
"value_type": "individual"
|
|
703
|
+
},
|
|
704
|
+
"type": "graph",
|
|
705
|
+
"xaxis": {
|
|
706
|
+
"buckets": null,
|
|
707
|
+
"mode": "time",
|
|
708
|
+
"name": null,
|
|
709
|
+
"show": true,
|
|
710
|
+
"values": []
|
|
711
|
+
},
|
|
712
|
+
"yaxes": [
|
|
713
|
+
{
|
|
714
|
+
"format": "short",
|
|
715
|
+
"label": null,
|
|
716
|
+
"logBase": 1,
|
|
717
|
+
"max": null,
|
|
718
|
+
"min": null,
|
|
719
|
+
"show": true
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"format": "short",
|
|
723
|
+
"label": null,
|
|
724
|
+
"logBase": 1,
|
|
725
|
+
"max": null,
|
|
726
|
+
"min": null,
|
|
727
|
+
"show": false
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
"yaxis": {
|
|
731
|
+
"align": false,
|
|
732
|
+
"alignLevel": null
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"refresh": "5m",
|
|
737
|
+
"schemaVersion": 26,
|
|
738
|
+
"style": "dark",
|
|
739
|
+
"tags": [
|
|
740
|
+
"Health",
|
|
741
|
+
"Ruby on Rails",
|
|
742
|
+
"influxdb-rails"
|
|
743
|
+
],
|
|
744
|
+
"templating": {
|
|
745
|
+
"list": [
|
|
746
|
+
{
|
|
747
|
+
"auto": true,
|
|
748
|
+
"auto_count": "50",
|
|
749
|
+
"auto_min": "",
|
|
750
|
+
"current": {
|
|
751
|
+
"selected": true,
|
|
752
|
+
"text": "auto",
|
|
753
|
+
"value": "$__auto_interval_per"
|
|
754
|
+
},
|
|
755
|
+
"hide": 0,
|
|
756
|
+
"label": null,
|
|
757
|
+
"name": "per",
|
|
758
|
+
"options": [
|
|
759
|
+
{
|
|
760
|
+
"selected": true,
|
|
761
|
+
"text": "auto",
|
|
762
|
+
"value": "$__auto_interval_per"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"selected": false,
|
|
766
|
+
"text": "1m",
|
|
767
|
+
"value": "1m"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"selected": false,
|
|
771
|
+
"text": "5m",
|
|
772
|
+
"value": "5m"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"selected": false,
|
|
776
|
+
"text": "15m",
|
|
777
|
+
"value": "15m"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"selected": false,
|
|
781
|
+
"text": "30m",
|
|
782
|
+
"value": "30m"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"selected": false,
|
|
786
|
+
"text": "1h",
|
|
787
|
+
"value": "1h"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"selected": false,
|
|
791
|
+
"text": "12h",
|
|
792
|
+
"value": "12h"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"selected": false,
|
|
796
|
+
"text": "1d",
|
|
797
|
+
"value": "1d"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"selected": false,
|
|
801
|
+
"text": "1w",
|
|
802
|
+
"value": "1w"
|
|
803
|
+
}
|
|
804
|
+
],
|
|
805
|
+
"query": "1m,5m,15m,30m,1h,12h,1d,1w",
|
|
806
|
+
"queryValue": "",
|
|
807
|
+
"refresh": 2,
|
|
808
|
+
"skipUrlSync": false,
|
|
809
|
+
"type": "interval"
|
|
810
|
+
}
|
|
811
|
+
]
|
|
812
|
+
},
|
|
813
|
+
"time": {
|
|
814
|
+
"from": "now-1h",
|
|
815
|
+
"to": "now"
|
|
816
|
+
},
|
|
817
|
+
"timepicker": {
|
|
818
|
+
"refresh_intervals": [
|
|
819
|
+
"10s",
|
|
820
|
+
"30s",
|
|
821
|
+
"1m",
|
|
822
|
+
"5m",
|
|
823
|
+
"15m",
|
|
824
|
+
"30m",
|
|
825
|
+
"1h",
|
|
826
|
+
"2h",
|
|
827
|
+
"1d"
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
"timezone": "",
|
|
831
|
+
"title": "Requests",
|
|
832
|
+
"uid": "influxdb-rails-requests",
|
|
833
|
+
"version": 17
|
|
834
|
+
}
|