influxdb-rails 1.0.1.beta3 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/spec.yml +2 -1
  3. data/CHANGELOG.md +10 -1
  4. data/README.md +40 -30
  5. data/influxdb-rails.gemspec +1 -1
  6. data/lib/influxdb/rails/tags.rb +1 -1
  7. data/lib/influxdb/rails/values.rb +1 -1
  8. data/lib/influxdb/rails/version.rb +1 -1
  9. data/sample-dashboard/Dockerfile +2 -2
  10. data/sample-dashboard/README.md +21 -28
  11. data/sample-dashboard/Rakefile +8 -3
  12. data/sample-dashboard/Ruby On Rails ActiveJob.json +600 -0
  13. data/sample-dashboard/{Ruby On Rails Performance (per Action).json → Ruby On Rails Performance per Action.json } +343 -589
  14. data/sample-dashboard/{Ruby On Rails Performance (per Request).json → Ruby On Rails Performance per Request.json } +361 -211
  15. data/sample-dashboard/Ruby On Rails Performance.json +1347 -1139
  16. data/sample-dashboard/Ruby On Rails Requests.json +834 -0
  17. data/sample-dashboard/Ruby On Rails Slowlog by Action.json +278 -0
  18. data/sample-dashboard/Ruby On Rails Slowlog by Request.json +277 -0
  19. data/sample-dashboard/Ruby On Rails Slowlog by SQL.json +328 -0
  20. data/sample-dashboard/docker-compose.yml +6 -1
  21. data/sample-dashboard/provisioning/activejob.json +600 -0
  22. data/sample-dashboard/provisioning/performance-action.json +334 -580
  23. data/sample-dashboard/provisioning/performance-request.json +355 -205
  24. data/sample-dashboard/provisioning/performance.json +1336 -1128
  25. data/sample-dashboard/provisioning/requests.json +834 -0
  26. data/sample-dashboard/provisioning/slowlog-action.json +278 -0
  27. data/sample-dashboard/provisioning/slowlog-requests.json +277 -0
  28. data/sample-dashboard/provisioning/slowlog-sql.json +328 -0
  29. metadata +18 -8
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "__inputs": [
3
3
  {
4
- "name": "DS_INFLUXDB",
5
- "label": "InfluxDB",
4
+ "name": "DS_INFLUXDB-RAILS",
5
+ "label": "InfluxDB-Rails",
6
6
  "description": "",
7
7
  "type": "datasource",
8
8
  "pluginId": "influxdb",
@@ -14,7 +14,7 @@
14
14
  "type": "grafana",
15
15
  "id": "grafana",
16
16
  "name": "Grafana",
17
- "version": "6.2.4"
17
+ "version": "7.1.1"
18
18
  },
19
19
  {
20
20
  "type": "panel",
@@ -30,14 +30,14 @@
30
30
  },
31
31
  {
32
32
  "type": "panel",
33
- "id": "singlestat",
34
- "name": "Singlestat",
33
+ "id": "stat",
34
+ "name": "Stat",
35
35
  "version": ""
36
36
  },
37
37
  {
38
38
  "type": "panel",
39
- "id": "table",
40
- "name": "Table",
39
+ "id": "table-old",
40
+ "name": "Table (old)",
41
41
  "version": ""
42
42
  }
43
43
  ],
@@ -54,90 +54,81 @@
54
54
  }
55
55
  ]
56
56
  },
57
- "description": "Ruby on Rails Request Performance Insights based on influxdb-rails",
57
+ "description": "Controller Action Performance Insights based on influxdb-rails",
58
58
  "editable": true,
59
- "gnetId": null,
59
+ "gnetId": 11031,
60
60
  "graphTooltip": 0,
61
61
  "id": null,
62
- "iteration": 1571756217977,
63
- "links": [],
62
+ "iteration": 1616428619978,
63
+ "links": [
64
+ {
65
+ "$$hashKey": "object:226",
66
+ "icon": "external link",
67
+ "keepTime": false,
68
+ "tags": [
69
+ "influxdb-rails"
70
+ ],
71
+ "type": "dashboards"
72
+ }
73
+ ],
64
74
  "panels": [
65
75
  {
66
76
  "cacheTimeout": null,
67
- "colorBackground": false,
68
- "colorValue": false,
69
- "colors": [
70
- "#299c46",
71
- "rgba(237, 129, 40, 0.89)",
72
- "#d44a3a"
73
- ],
74
77
  "datasource": "InfluxDB",
75
- "format": "ms",
76
- "gauge": {
77
- "maxValue": 100,
78
- "minValue": 0,
79
- "show": false,
80
- "thresholdLabels": false,
81
- "thresholdMarkers": true
78
+ "fieldConfig": {
79
+ "defaults": {
80
+ "custom": {},
81
+ "mappings": [
82
+ {
83
+ "id": 0,
84
+ "op": "=",
85
+ "text": "N/A",
86
+ "type": 1,
87
+ "value": "null"
88
+ }
89
+ ],
90
+ "nullValueMode": "connected",
91
+ "thresholds": {
92
+ "mode": "absolute",
93
+ "steps": [
94
+ {
95
+ "color": "green",
96
+ "value": null
97
+ }
98
+ ]
99
+ },
100
+ "unit": "short"
101
+ },
102
+ "overrides": []
82
103
  },
83
104
  "gridPos": {
84
- "h": 4,
105
+ "h": 3,
85
106
  "w": 5,
86
107
  "x": 0,
87
108
  "y": 0
88
109
  },
89
- "id": 16,
110
+ "id": 22,
90
111
  "interval": null,
91
112
  "links": [],
92
- "mappingType": 1,
93
- "mappingTypes": [
94
- {
95
- "name": "value to text",
96
- "value": 1
97
- },
98
- {
99
- "name": "range to text",
100
- "value": 2
101
- }
102
- ],
103
113
  "maxDataPoints": 100,
104
- "nullPointMode": "connected",
105
- "nullText": null,
106
- "options": {},
107
- "postfix": "",
108
- "postfixFontSize": "50%",
109
- "prefix": "",
110
- "prefixFontSize": "50%",
111
- "rangeMaps": [
112
- {
113
- "from": "null",
114
- "text": "N/A",
115
- "to": "null"
116
- }
117
- ],
118
- "sparkline": {
119
- "fillColor": "rgba(31, 118, 189, 0.18)",
120
- "full": false,
121
- "lineColor": "rgb(31, 120, 193)",
122
- "show": true
114
+ "options": {
115
+ "colorMode": "value",
116
+ "graphMode": "none",
117
+ "justifyMode": "center",
118
+ "orientation": "horizontal",
119
+ "reduceOptions": {
120
+ "calcs": [
121
+ "sum"
122
+ ],
123
+ "fields": "/^rails\\.count$/",
124
+ "values": false
125
+ },
126
+ "textMode": "auto"
123
127
  },
124
- "tableColumn": "",
128
+ "pluginVersion": "7.1.1",
125
129
  "targets": [
126
130
  {
127
- "groupBy": [
128
- {
129
- "params": [
130
- "$__interval"
131
- ],
132
- "type": "time"
133
- },
134
- {
135
- "params": [
136
- "null"
137
- ],
138
- "type": "fill"
139
- }
140
- ],
131
+ "groupBy": [],
141
132
  "measurement": "rails",
142
133
  "orderByTime": "ASC",
143
134
  "policy": "default",
@@ -153,7 +144,7 @@
153
144
  },
154
145
  {
155
146
  "params": [],
156
- "type": "mean"
147
+ "type": "count"
157
148
  }
158
149
  ]
159
150
  ],
@@ -172,79 +163,66 @@
172
163
  ]
173
164
  }
174
165
  ],
175
- "thresholds": "",
176
- "title": "Request",
177
- "type": "singlestat",
178
- "valueFontSize": "80%",
179
- "valueMaps": [
180
- {
181
- "op": "=",
182
- "text": "N/A",
183
- "value": "null"
184
- }
185
- ],
186
- "valueName": "avg"
166
+ "title": "Requests Served",
167
+ "type": "stat"
187
168
  },
188
169
  {
189
170
  "cacheTimeout": null,
190
- "colorBackground": false,
191
- "colorValue": false,
192
- "colors": [
193
- "#299c46",
194
- "rgba(237, 129, 40, 0.89)",
195
- "#d44a3a"
196
- ],
197
171
  "datasource": "InfluxDB",
198
- "format": "ms",
199
- "gauge": {
200
- "maxValue": 100,
201
- "minValue": 0,
202
- "show": false,
203
- "thresholdLabels": false,
204
- "thresholdMarkers": true
172
+ "description": "",
173
+ "fieldConfig": {
174
+ "defaults": {
175
+ "custom": {},
176
+ "decimals": 2,
177
+ "displayName": "Response Time",
178
+ "mappings": [],
179
+ "nullValueMode": "connected",
180
+ "thresholds": {
181
+ "mode": "absolute",
182
+ "steps": [
183
+ {
184
+ "color": "#299c46",
185
+ "value": null
186
+ },
187
+ {
188
+ "color": "yellow",
189
+ "value": 150
190
+ },
191
+ {
192
+ "color": "red",
193
+ "value": 300
194
+ }
195
+ ]
196
+ },
197
+ "unit": "ms"
198
+ },
199
+ "overrides": []
205
200
  },
206
201
  "gridPos": {
207
- "h": 4,
208
- "w": 5,
202
+ "h": 3,
203
+ "w": 6,
209
204
  "x": 5,
210
205
  "y": 0
211
206
  },
212
- "id": 14,
207
+ "id": 30,
213
208
  "interval": null,
214
209
  "links": [],
215
- "mappingType": 1,
216
- "mappingTypes": [
217
- {
218
- "name": "value to text",
219
- "value": 1
220
- },
221
- {
222
- "name": "range to text",
223
- "value": 2
224
- }
225
- ],
226
210
  "maxDataPoints": 100,
227
- "nullPointMode": "connected",
228
- "nullText": null,
229
- "options": {},
230
- "postfix": "",
231
- "postfixFontSize": "50%",
232
- "prefix": "",
233
- "prefixFontSize": "50%",
234
- "rangeMaps": [
235
- {
236
- "from": "null",
237
- "text": "N/A",
238
- "to": "null"
239
- }
240
- ],
241
- "sparkline": {
242
- "fillColor": "rgba(31, 118, 189, 0.18)",
243
- "full": false,
244
- "lineColor": "rgb(31, 120, 193)",
245
- "show": true
211
+ "options": {
212
+ "colorMode": "value",
213
+ "graphMode": "none",
214
+ "justifyMode": "center",
215
+ "orientation": "horizontal",
216
+ "reduceOptions": {
217
+ "calcs": [
218
+ "mean"
219
+ ],
220
+ "fields": "",
221
+ "values": false
222
+ },
223
+ "textMode": "auto"
246
224
  },
247
- "tableColumn": "",
225
+ "pluginVersion": "7.1.1",
248
226
  "targets": [
249
227
  {
250
228
  "groupBy": [
@@ -261,6 +239,7 @@
261
239
  "type": "fill"
262
240
  }
263
241
  ],
242
+ "hide": false,
264
243
  "measurement": "rails",
265
244
  "orderByTime": "ASC",
266
245
  "policy": "default",
@@ -270,7 +249,7 @@
270
249
  [
271
250
  {
272
251
  "params": [
273
- "view"
252
+ "controller"
274
253
  ],
275
254
  "type": "field"
276
255
  },
@@ -282,92 +261,79 @@
282
261
  ],
283
262
  "tags": [
284
263
  {
285
- "key": "method",
286
- "operator": "=~",
287
- "value": "/^$Action$/"
288
- },
289
- {
290
- "condition": "AND",
291
264
  "key": "hook",
292
265
  "operator": "=",
293
266
  "value": "process_action"
267
+ },
268
+ {
269
+ "condition": "AND",
270
+ "key": "method",
271
+ "operator": "=~",
272
+ "value": "/^$Action$/"
294
273
  }
295
274
  ]
296
275
  }
297
276
  ],
298
- "thresholds": "",
299
- "title": "View per request",
300
- "type": "singlestat",
301
- "valueFontSize": "80%",
302
- "valueMaps": [
303
- {
304
- "op": "=",
305
- "text": "N/A",
306
- "value": "null"
307
- }
308
- ],
309
- "valueName": "avg"
277
+ "title": "Average Response",
278
+ "type": "stat"
310
279
  },
311
280
  {
312
281
  "cacheTimeout": null,
313
- "colorBackground": false,
314
- "colorValue": false,
315
- "colors": [
316
- "#299c46",
317
- "rgba(237, 129, 40, 0.89)",
318
- "#d44a3a"
319
- ],
320
282
  "datasource": "InfluxDB",
321
- "format": "ms",
322
- "gauge": {
323
- "maxValue": 100,
324
- "minValue": 0,
325
- "show": false,
326
- "thresholdLabels": false,
327
- "thresholdMarkers": true
283
+ "description": "",
284
+ "fieldConfig": {
285
+ "defaults": {
286
+ "custom": {},
287
+ "decimals": 2,
288
+ "displayName": "Response Time",
289
+ "mappings": [],
290
+ "nullValueMode": "connected",
291
+ "thresholds": {
292
+ "mode": "absolute",
293
+ "steps": [
294
+ {
295
+ "color": "#299c46",
296
+ "value": null
297
+ },
298
+ {
299
+ "color": "yellow",
300
+ "value": 150
301
+ },
302
+ {
303
+ "color": "red",
304
+ "value": 300
305
+ }
306
+ ]
307
+ },
308
+ "unit": "ms"
309
+ },
310
+ "overrides": []
328
311
  },
329
312
  "gridPos": {
330
- "h": 4,
331
- "w": 5,
332
- "x": 10,
313
+ "h": 3,
314
+ "w": 6,
315
+ "x": 11,
333
316
  "y": 0
334
317
  },
335
- "id": 10,
318
+ "id": 31,
336
319
  "interval": null,
337
320
  "links": [],
338
- "mappingType": 1,
339
- "mappingTypes": [
340
- {
341
- "name": "value to text",
342
- "value": 1
343
- },
344
- {
345
- "name": "range to text",
346
- "value": 2
347
- }
348
- ],
349
321
  "maxDataPoints": 100,
350
- "nullPointMode": "connected",
351
- "nullText": null,
352
- "options": {},
353
- "postfix": "",
354
- "postfixFontSize": "50%",
355
- "prefix": "",
356
- "prefixFontSize": "50%",
357
- "rangeMaps": [
358
- {
359
- "from": "null",
360
- "text": "N/A",
361
- "to": "null"
362
- }
363
- ],
364
- "sparkline": {
365
- "fillColor": "rgba(31, 118, 189, 0.18)",
366
- "full": false,
367
- "lineColor": "rgb(31, 120, 193)",
368
- "show": true
322
+ "options": {
323
+ "colorMode": "value",
324
+ "graphMode": "none",
325
+ "justifyMode": "center",
326
+ "orientation": "horizontal",
327
+ "reduceOptions": {
328
+ "calcs": [
329
+ "mean"
330
+ ],
331
+ "fields": "",
332
+ "values": false
333
+ },
334
+ "textMode": "auto"
369
335
  },
370
- "tableColumn": "",
336
+ "pluginVersion": "7.1.1",
371
337
  "targets": [
372
338
  {
373
339
  "groupBy": [
@@ -384,6 +350,7 @@
384
350
  "type": "fill"
385
351
  }
386
352
  ],
353
+ "hide": false,
387
354
  "measurement": "rails",
388
355
  "orderByTime": "ASC",
389
356
  "policy": "default",
@@ -393,7 +360,7 @@
393
360
  [
394
361
  {
395
362
  "params": [
396
- "db"
363
+ "view"
397
364
  ],
398
365
  "type": "field"
399
366
  },
@@ -405,206 +372,93 @@
405
372
  ],
406
373
  "tags": [
407
374
  {
408
- "key": "method",
409
- "operator": "=~",
410
- "value": "/^$Action$/"
411
- },
412
- {
413
- "condition": "AND",
414
375
  "key": "hook",
415
376
  "operator": "=",
416
377
  "value": "process_action"
378
+ },
379
+ {
380
+ "condition": "AND",
381
+ "key": "method",
382
+ "operator": "=~",
383
+ "value": "/^$Action$/"
417
384
  }
418
385
  ]
419
386
  }
420
387
  ],
421
- "thresholds": "",
422
- "title": "SQL per request",
423
- "type": "singlestat",
424
- "valueFontSize": "80%",
425
- "valueMaps": [
426
- {
427
- "op": "=",
428
- "text": "N/A",
429
- "value": "null"
430
- }
431
- ],
432
- "valueName": "avg"
388
+ "title": "Average View Rendering",
389
+ "type": "stat"
433
390
  },
434
391
  {
435
392
  "cacheTimeout": null,
436
- "colorBackground": false,
437
- "colorValue": false,
438
- "colors": [
439
- "#299c46",
440
- "rgba(237, 129, 40, 0.89)",
441
- "#d44a3a"
442
- ],
443
393
  "datasource": "InfluxDB",
444
- "format": "short",
445
- "gauge": {
446
- "maxValue": 100,
447
- "minValue": 0,
448
- "show": false,
449
- "thresholdLabels": false,
450
- "thresholdMarkers": true
451
- },
452
- "gridPos": {
453
- "h": 4,
454
- "w": 5,
455
- "x": 15,
456
- "y": 0
457
- },
458
- "id": 22,
459
- "interval": null,
460
- "links": [],
461
- "mappingType": 1,
462
- "mappingTypes": [
463
- {
464
- "name": "value to text",
465
- "value": 1
466
- },
467
- {
468
- "name": "range to text",
469
- "value": 2
470
- }
471
- ],
472
- "maxDataPoints": 100,
473
- "nullPointMode": "connected",
474
- "nullText": null,
475
- "options": {},
476
- "postfix": "",
477
- "postfixFontSize": "50%",
478
- "prefix": "",
479
- "prefixFontSize": "50%",
480
- "rangeMaps": [
481
- {
482
- "from": "null",
483
- "text": "N/A",
484
- "to": "null"
485
- }
486
- ],
487
- "sparkline": {
488
- "fillColor": "rgba(31, 118, 189, 0.18)",
489
- "full": false,
490
- "lineColor": "rgb(31, 120, 193)",
491
- "show": false
492
- },
493
- "tableColumn": "value",
494
- "targets": [
495
- {
496
- "groupBy": [],
497
- "measurement": "rails",
498
- "orderByTime": "ASC",
499
- "policy": "default",
500
- "refId": "A",
501
- "resultFormat": "time_series",
502
- "select": [
503
- [
394
+ "fieldConfig": {
395
+ "defaults": {
396
+ "custom": {},
397
+ "displayName": "Response Time",
398
+ "mappings": [],
399
+ "nullValueMode": "connected",
400
+ "thresholds": {
401
+ "mode": "absolute",
402
+ "steps": [
504
403
  {
505
- "params": [
506
- "controller"
507
- ],
508
- "type": "field"
404
+ "color": "#299c46",
405
+ "value": null
509
406
  },
510
407
  {
511
- "params": [],
512
- "type": "count"
408
+ "color": "rgba(237, 129, 40, 0.89)",
409
+ "value": 50
410
+ },
411
+ {
412
+ "color": "#d44a3a",
413
+ "value": 100
513
414
  }
514
415
  ]
515
- ],
516
- "tags": [
517
- {
518
- "key": "method",
519
- "operator": "=~",
520
- "value": "/^$Action$/"
521
- },
522
- {
523
- "condition": "AND",
524
- "key": "hook",
525
- "operator": "=",
526
- "value": "process_action"
527
- }
528
- ]
529
- }
530
- ],
531
- "thresholds": "",
532
- "title": "Total requests",
533
- "type": "singlestat",
534
- "valueFontSize": "80%",
535
- "valueMaps": [
536
- {
537
- "op": "=",
538
- "text": "N/A",
539
- "value": "null"
540
- }
541
- ],
542
- "valueName": "avg"
543
- },
544
- {
545
- "cacheTimeout": null,
546
- "colorBackground": false,
547
- "colorValue": true,
548
- "colors": [
549
- "#e24d42",
550
- "#e5ac0e",
551
- "#629e51"
552
- ],
553
- "datasource": "InfluxDB",
554
- "decimals": null,
555
- "format": "percent",
556
- "gauge": {
557
- "maxValue": 100,
558
- "minValue": 0,
559
- "show": false,
560
- "thresholdLabels": false,
561
- "thresholdMarkers": true
416
+ },
417
+ "unit": "ms"
418
+ },
419
+ "overrides": []
562
420
  },
563
421
  "gridPos": {
564
- "h": 4,
565
- "w": 4,
566
- "x": 20,
422
+ "h": 3,
423
+ "w": 7,
424
+ "x": 17,
567
425
  "y": 0
568
426
  },
569
- "id": 24,
427
+ "id": 28,
570
428
  "interval": null,
571
429
  "links": [],
572
- "mappingType": 1,
573
- "mappingTypes": [
574
- {
575
- "name": "value to text",
576
- "value": 1
577
- },
578
- {
579
- "name": "range to text",
580
- "value": 2
581
- }
582
- ],
583
430
  "maxDataPoints": 100,
584
- "nullPointMode": "connected",
585
- "nullText": null,
586
- "options": {},
587
- "postfix": "",
588
- "postfixFontSize": "50%",
589
- "prefix": "",
590
- "prefixFontSize": "50%",
591
- "rangeMaps": [
592
- {
593
- "from": "null",
594
- "text": "N/A",
595
- "to": "null"
596
- }
597
- ],
598
- "sparkline": {
599
- "fillColor": "rgba(31, 118, 189, 0.18)",
600
- "full": false,
601
- "lineColor": "rgb(31, 120, 193)",
602
- "show": false
431
+ "options": {
432
+ "colorMode": "value",
433
+ "graphMode": "none",
434
+ "justifyMode": "center",
435
+ "orientation": "horizontal",
436
+ "reduceOptions": {
437
+ "calcs": [
438
+ "mean"
439
+ ],
440
+ "fields": "",
441
+ "values": false
442
+ },
443
+ "textMode": "auto"
603
444
  },
604
- "tableColumn": "",
445
+ "pluginVersion": "7.1.1",
605
446
  "targets": [
606
447
  {
607
- "groupBy": [],
448
+ "groupBy": [
449
+ {
450
+ "params": [
451
+ "$__interval"
452
+ ],
453
+ "type": "time"
454
+ },
455
+ {
456
+ "params": [
457
+ "null"
458
+ ],
459
+ "type": "fill"
460
+ }
461
+ ],
608
462
  "measurement": "rails",
609
463
  "orderByTime": "ASC",
610
464
  "policy": "default",
@@ -614,80 +468,74 @@
614
468
  [
615
469
  {
616
470
  "params": [
617
- "cache_hits"
471
+ "db"
618
472
  ],
619
473
  "type": "field"
620
474
  },
621
475
  {
622
- "params": [
623
- " / \"count\" * 100"
624
- ],
625
- "type": "math"
476
+ "params": [],
477
+ "type": "mean"
626
478
  }
627
479
  ]
628
480
  ],
629
481
  "tags": [
630
482
  {
631
- "key": "location",
632
- "operator": "=~",
633
- "value": "/^$Action$/"
483
+ "key": "hook",
484
+ "operator": "=",
485
+ "value": "process_action"
634
486
  },
635
487
  {
636
488
  "condition": "AND",
637
- "key": "hook",
638
- "operator": "=",
639
- "value": "render_collection"
489
+ "key": "method",
490
+ "operator": "=~",
491
+ "value": "/^$Action$/"
640
492
  }
641
493
  ]
642
494
  }
643
495
  ],
644
- "thresholds": "10,80",
645
- "title": "Cache hits",
646
- "type": "singlestat",
647
- "valueFontSize": "80%",
648
- "valueMaps": [
649
- {
650
- "op": "=",
651
- "text": "N/A",
652
- "value": "null"
653
- }
654
- ],
655
- "valueName": "avg"
496
+ "title": "Average Database Response",
497
+ "type": "stat"
656
498
  },
657
499
  {
658
500
  "aliasColors": {},
659
- "bars": false,
501
+ "bars": true,
660
502
  "dashLength": 10,
661
503
  "dashes": false,
662
504
  "datasource": "InfluxDB",
505
+ "fieldConfig": {
506
+ "defaults": {
507
+ "custom": {},
508
+ "links": []
509
+ },
510
+ "overrides": []
511
+ },
663
512
  "fill": 1,
664
513
  "fillGradient": 0,
665
514
  "gridPos": {
666
515
  "h": 8,
667
516
  "w": 13,
668
517
  "x": 0,
669
- "y": 4
518
+ "y": 3
670
519
  },
520
+ "hiddenSeries": false,
671
521
  "id": 20,
672
522
  "legend": {
673
523
  "avg": false,
674
524
  "current": false,
675
525
  "max": false,
676
526
  "min": false,
677
- "show": false,
527
+ "show": true,
678
528
  "total": false,
679
529
  "values": false
680
530
  },
681
- "lines": true,
682
- "linewidth": 1,
531
+ "lines": false,
532
+ "linewidth": 7,
683
533
  "links": [],
684
534
  "nullPointMode": "null",
685
- "options": {
686
- "dataLinks": []
687
- },
688
535
  "percentage": false,
689
- "pointradius": 5,
690
- "points": false,
536
+ "pluginVersion": "7.1.1",
537
+ "pointradius": 3,
538
+ "points": true,
691
539
  "renderer": "flot",
692
540
  "seriesOverrides": [
693
541
  {
@@ -705,6 +553,7 @@
705
553
  "steppedLine": false,
706
554
  "targets": [
707
555
  {
556
+ "alias": "",
708
557
  "groupBy": [
709
558
  {
710
559
  "params": [
@@ -714,7 +563,7 @@
714
563
  },
715
564
  {
716
565
  "params": [
717
- "0"
566
+ "null"
718
567
  ],
719
568
  "type": "fill"
720
569
  }
@@ -734,103 +583,7 @@
734
583
  },
735
584
  {
736
585
  "params": [],
737
- "type": "mean"
738
- }
739
- ]
740
- ],
741
- "tags": [
742
- {
743
- "key": "method",
744
- "operator": "=~",
745
- "value": "/^$Action$/"
746
- },
747
- {
748
- "condition": "AND",
749
- "key": "hook",
750
- "operator": "=",
751
- "value": "process_action"
752
- }
753
- ]
754
- },
755
- {
756
- "groupBy": [
757
- {
758
- "params": [
759
- "$__interval"
760
- ],
761
- "type": "time"
762
- },
763
- {
764
- "params": [
765
- "0"
766
- ],
767
- "type": "fill"
768
- }
769
- ],
770
- "measurement": "rails",
771
- "orderByTime": "ASC",
772
- "policy": "default",
773
- "refId": "B",
774
- "resultFormat": "time_series",
775
- "select": [
776
- [
777
- {
778
- "params": [
779
- "controller"
780
- ],
781
- "type": "field"
782
- },
783
- {
784
- "params": [],
785
- "type": "max"
786
- }
787
- ]
788
- ],
789
- "tags": [
790
- {
791
- "key": "method",
792
- "operator": "=~",
793
- "value": "/^$Action$/"
794
- },
795
- {
796
- "condition": "AND",
797
- "key": "hook",
798
- "operator": "=",
799
- "value": "process_action"
800
- }
801
- ]
802
- },
803
- {
804
- "groupBy": [
805
- {
806
- "params": [
807
- "$__interval"
808
- ],
809
- "type": "time"
810
- },
811
- {
812
- "params": [
813
- "0"
814
- ],
815
- "type": "fill"
816
- }
817
- ],
818
- "measurement": "rails",
819
- "orderByTime": "ASC",
820
- "policy": "default",
821
- "refId": "C",
822
- "resultFormat": "time_series",
823
- "select": [
824
- [
825
- {
826
- "params": [
827
- "controller"
828
- ],
829
- "type": "field"
830
- },
831
- {
832
- "params": [],
833
- "type": "min"
586
+ "type": "sum"
834
587
  }
835
588
  ]
836
589
  ],
@@ -872,7 +625,7 @@
872
625
  "decimals": null,
873
626
  "format": "dtdurationms",
874
627
  "label": "",
875
- "logBase": 2,
628
+ "logBase": 1,
876
629
  "max": null,
877
630
  "min": null,
878
631
  "show": true
@@ -883,7 +636,7 @@
883
636
  "logBase": 1,
884
637
  "max": null,
885
638
  "min": null,
886
- "show": true
639
+ "show": false
887
640
  }
888
641
  ],
889
642
  "yaxis": {
@@ -894,32 +647,39 @@
894
647
  {
895
648
  "columns": [],
896
649
  "datasource": "InfluxDB",
650
+ "fieldConfig": {
651
+ "defaults": {
652
+ "custom": {}
653
+ },
654
+ "overrides": []
655
+ },
897
656
  "fontSize": "100%",
898
657
  "gridPos": {
899
658
  "h": 8,
900
659
  "w": 11,
901
660
  "x": 13,
902
- "y": 4
661
+ "y": 3
903
662
  },
904
663
  "id": 26,
905
664
  "links": [],
906
- "options": {},
907
665
  "pageSize": null,
908
666
  "scroll": true,
909
667
  "showHeader": true,
910
668
  "sort": {
911
- "col": 0,
669
+ "col": 3,
912
670
  "desc": true
913
671
  },
914
672
  "styles": [
915
673
  {
916
674
  "alias": "Time",
675
+ "align": "auto",
917
676
  "dateFormat": "YYYY-MM-DD HH:mm:ss",
918
677
  "pattern": "Time",
919
678
  "type": "date"
920
679
  },
921
680
  {
922
681
  "alias": "Reqest",
682
+ "align": "auto",
923
683
  "colorMode": null,
924
684
  "colors": [
925
685
  "rgba(245, 54, 54, 0.9)",
@@ -931,7 +691,7 @@
931
691
  "link": true,
932
692
  "linkTargetBlank": true,
933
693
  "linkTooltip": "Show details of this request",
934
- "linkUrl": "/d/$REQUEST_DASHBOARD_UID/ruby-on-rails-performance-per-request?orgId=1&var-request_id=${__cell}&from=${__cell_2}&to=${__cell_0}&var-method=${__cell_1}",
694
+ "linkUrl": "/d/influxdb-rails-request/ruby-on-rails-performance-per-request?orgId=1&var-request_id=${__cell}&from=${__cell_2}&to=${__cell_0}&var-method=${__cell_1}",
935
695
  "mappingType": 1,
936
696
  "pattern": "request_id",
937
697
  "thresholds": [],
@@ -940,6 +700,7 @@
940
700
  },
941
701
  {
942
702
  "alias": "Response time",
703
+ "align": "auto",
943
704
  "colorMode": null,
944
705
  "colors": [
945
706
  "rgba(245, 54, 54, 0.9)",
@@ -956,6 +717,7 @@
956
717
  },
957
718
  {
958
719
  "alias": "Time",
720
+ "align": "auto",
959
721
  "colorMode": null,
960
722
  "colors": [
961
723
  "rgba(245, 54, 54, 0.9)",
@@ -972,6 +734,7 @@
972
734
  },
973
735
  {
974
736
  "alias": "",
737
+ "align": "auto",
975
738
  "colorMode": null,
976
739
  "colors": [
977
740
  "rgba(245, 54, 54, 0.9)",
@@ -988,6 +751,7 @@
988
751
  },
989
752
  {
990
753
  "alias": "",
754
+ "align": "auto",
991
755
  "colorMode": null,
992
756
  "colors": [
993
757
  "rgba(245, 54, 54, 0.9)",
@@ -1060,21 +824,26 @@
1060
824
  ],
1061
825
  "title": "Last requests",
1062
826
  "transform": "table",
1063
- "type": "table"
827
+ "type": "table-old"
1064
828
  },
1065
829
  {
1066
830
  "columns": [],
1067
831
  "datasource": "InfluxDB",
832
+ "fieldConfig": {
833
+ "defaults": {
834
+ "custom": {}
835
+ },
836
+ "overrides": []
837
+ },
1068
838
  "fontSize": "100%",
1069
839
  "gridPos": {
1070
840
  "h": 15,
1071
841
  "w": 13,
1072
842
  "x": 0,
1073
- "y": 12
843
+ "y": 11
1074
844
  },
1075
845
  "id": 2,
1076
846
  "links": [],
1077
- "options": {},
1078
847
  "pageSize": null,
1079
848
  "scroll": true,
1080
849
  "showHeader": true,
@@ -1085,12 +854,14 @@
1085
854
  "styles": [
1086
855
  {
1087
856
  "alias": "Time",
857
+ "align": "auto",
1088
858
  "dateFormat": "YYYY-MM-DD HH:mm:ss",
1089
859
  "pattern": "Time",
1090
860
  "type": "hidden"
1091
861
  },
1092
862
  {
1093
863
  "alias": "Partial",
864
+ "align": "auto",
1094
865
  "colorMode": null,
1095
866
  "colors": [
1096
867
  "rgba(245, 54, 54, 0.9)",
@@ -1108,6 +879,7 @@
1108
879
  },
1109
880
  {
1110
881
  "alias": "Count",
882
+ "align": "auto",
1111
883
  "colorMode": null,
1112
884
  "colors": [
1113
885
  "rgba(245, 54, 54, 0.9)",
@@ -1124,6 +896,7 @@
1124
896
  },
1125
897
  {
1126
898
  "alias": "Mean",
899
+ "align": "auto",
1127
900
  "colorMode": null,
1128
901
  "colors": [
1129
902
  "rgba(245, 54, 54, 0.9)",
@@ -1140,6 +913,7 @@
1140
913
  },
1141
914
  {
1142
915
  "alias": "Median",
916
+ "align": "auto",
1143
917
  "colorMode": null,
1144
918
  "colors": [
1145
919
  "rgba(245, 54, 54, 0.9)",
@@ -1156,6 +930,7 @@
1156
930
  },
1157
931
  {
1158
932
  "alias": "Max",
933
+ "align": "auto",
1159
934
  "colorMode": null,
1160
935
  "colors": [
1161
936
  "rgba(245, 54, 54, 0.9)",
@@ -1172,6 +947,7 @@
1172
947
  },
1173
948
  {
1174
949
  "alias": "",
950
+ "align": "auto",
1175
951
  "colorMode": null,
1176
952
  "colors": [
1177
953
  "rgba(245, 54, 54, 0.9)",
@@ -1260,60 +1036,53 @@
1260
1036
  "condition": "AND",
1261
1037
  "key": "hook",
1262
1038
  "operator": "=",
1263
- "value": "render_partial"
1039
+ "value": "render_template"
1264
1040
  }
1265
1041
  ]
1266
1042
  }
1267
1043
  ],
1268
1044
  "title": "Partials",
1269
1045
  "transform": "table",
1270
- "type": "table"
1046
+ "type": "table-old"
1271
1047
  },
1272
1048
  {
1273
1049
  "columns": [],
1274
1050
  "datasource": "InfluxDB",
1051
+ "fieldConfig": {
1052
+ "defaults": {
1053
+ "custom": {}
1054
+ },
1055
+ "overrides": []
1056
+ },
1275
1057
  "fontSize": "100%",
1276
1058
  "gridPos": {
1277
1059
  "h": 15,
1278
1060
  "w": 11,
1279
1061
  "x": 13,
1280
- "y": 12
1062
+ "y": 11
1281
1063
  },
1282
1064
  "id": 4,
1283
1065
  "links": [],
1284
- "options": {},
1285
1066
  "pageSize": null,
1286
1067
  "scroll": true,
1287
1068
  "showHeader": true,
1288
1069
  "sort": {
1289
- "col": 6,
1070
+ "col": 5,
1290
1071
  "desc": true
1291
1072
  },
1292
1073
  "styles": [
1293
1074
  {
1075
+ "$$hashKey": "object:171",
1294
1076
  "alias": "Time",
1077
+ "align": "auto",
1295
1078
  "dateFormat": "YYYY-MM-DD HH:mm:ss",
1296
1079
  "pattern": "Time",
1297
1080
  "type": "hidden"
1298
1081
  },
1299
1082
  {
1300
- "alias": "",
1301
- "colorMode": null,
1302
- "colors": [
1303
- "rgba(245, 54, 54, 0.9)",
1304
- "rgba(237, 129, 40, 0.89)",
1305
- "rgba(50, 172, 45, 0.97)"
1306
- ],
1307
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
1308
- "decimals": 2,
1309
- "mappingType": 1,
1310
- "pattern": "SQL",
1311
- "thresholds": [],
1312
- "type": "string",
1313
- "unit": "short"
1314
- },
1315
- {
1083
+ "$$hashKey": "object:173",
1316
1084
  "alias": "Count",
1085
+ "align": "auto",
1317
1086
  "colorMode": null,
1318
1087
  "colors": [
1319
1088
  "rgba(245, 54, 54, 0.9)",
@@ -1329,7 +1098,9 @@
1329
1098
  "unit": "short"
1330
1099
  },
1331
1100
  {
1101
+ "$$hashKey": "object:174",
1332
1102
  "alias": "Mean",
1103
+ "align": "auto",
1333
1104
  "colorMode": null,
1334
1105
  "colors": [
1335
1106
  "rgba(245, 54, 54, 0.9)",
@@ -1345,7 +1116,9 @@
1345
1116
  "unit": "ms"
1346
1117
  },
1347
1118
  {
1119
+ "$$hashKey": "object:175",
1348
1120
  "alias": "Median",
1121
+ "align": "auto",
1349
1122
  "colorMode": null,
1350
1123
  "colors": [
1351
1124
  "rgba(245, 54, 54, 0.9)",
@@ -1361,7 +1134,9 @@
1361
1134
  "unit": "ms"
1362
1135
  },
1363
1136
  {
1137
+ "$$hashKey": "object:176",
1364
1138
  "alias": "Name",
1139
+ "align": "auto",
1365
1140
  "colorMode": null,
1366
1141
  "colors": [
1367
1142
  "rgba(245, 54, 54, 0.9)",
@@ -1373,11 +1148,20 @@
1373
1148
  "mappingType": 1,
1374
1149
  "pattern": "name",
1375
1150
  "thresholds": [],
1376
- "type": "number",
1377
- "unit": "short"
1151
+ "type": "string",
1152
+ "unit": "short",
1153
+ "valueMaps": [
1154
+ {
1155
+ "$$hashKey": "object:299",
1156
+ "text": "Raw",
1157
+ "value": ""
1158
+ }
1159
+ ]
1378
1160
  },
1379
1161
  {
1162
+ "$$hashKey": "object:177",
1380
1163
  "alias": "Max",
1164
+ "align": "auto",
1381
1165
  "colorMode": null,
1382
1166
  "colors": [
1383
1167
  "rgba(245, 54, 54, 0.9)",
@@ -1391,20 +1175,6 @@
1391
1175
  "thresholds": [],
1392
1176
  "type": "number",
1393
1177
  "unit": "ms"
1394
- },
1395
- {
1396
- "alias": "",
1397
- "colorMode": null,
1398
- "colors": [
1399
- "rgba(245, 54, 54, 0.9)",
1400
- "rgba(237, 129, 40, 0.89)",
1401
- "rgba(50, 172, 45, 0.97)"
1402
- ],
1403
- "decimals": 2,
1404
- "pattern": "/.*/",
1405
- "thresholds": [],
1406
- "type": "number",
1407
- "unit": "short"
1408
1178
  }
1409
1179
  ],
1410
1180
  "targets": [
@@ -1489,13 +1259,16 @@
1489
1259
  ],
1490
1260
  "title": "SQL",
1491
1261
  "transform": "table",
1492
- "type": "table"
1262
+ "type": "table-old"
1493
1263
  }
1494
1264
  ],
1495
1265
  "refresh": false,
1496
- "schemaVersion": 18,
1266
+ "schemaVersion": 26,
1497
1267
  "style": "dark",
1498
- "tags": [],
1268
+ "tags": [
1269
+ "Performance",
1270
+ "Ruby on Rails"
1271
+ ],
1499
1272
  "templating": {
1500
1273
  "list": [
1501
1274
  {
@@ -1519,34 +1292,15 @@
1519
1292
  "tagsQuery": "",
1520
1293
  "type": "query",
1521
1294
  "useTags": false
1522
- },
1523
- {
1524
- "current": {
1525
- "value": "H8S9fSVWz",
1526
- "text": "H8S9fSVWz"
1527
- },
1528
- "hide": 2,
1529
- "label": null,
1530
- "name": "REQUEST_DASHBOARD_UID",
1531
- "options": [
1532
- {
1533
- "value": "H8S9fSVWz",
1534
- "text": "H8S9fSVWz"
1535
- }
1536
- ],
1537
- "query": "H8S9fSVWz",
1538
- "skipUrlSync": false,
1539
- "type": "constant"
1540
1295
  }
1541
1296
  ]
1542
1297
  },
1543
1298
  "time": {
1544
- "from": "now-2d",
1299
+ "from": "now-1h",
1545
1300
  "to": "now"
1546
1301
  },
1547
1302
  "timepicker": {
1548
1303
  "refresh_intervals": [
1549
- "5s",
1550
1304
  "10s",
1551
1305
  "30s",
1552
1306
  "1m",
@@ -1570,7 +1324,7 @@
1570
1324
  ]
1571
1325
  },
1572
1326
  "timezone": "",
1573
- "title": "Ruby On Rails Performance (per Action)",
1574
- "uid": "Gpp3B1Pik",
1575
- "version": 1
1576
- }
1327
+ "title": "Performance (per Action)",
1328
+ "uid": "influxdb-rails-action",
1329
+ "version": 10
1330
+ }