influxdb-rails 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/rubocop.yml +18 -0
- data/.github/workflows/spec.yml +32 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +35 -7
- data/CHANGELOG.md +40 -1
- data/README.md +125 -27
- data/Rakefile +0 -6
- data/gemfiles/Gemfile.rails-6.0.x +9 -0
- data/gemfiles/Gemfile.rails-6.1.x +9 -0
- data/influxdb-rails.gemspec +7 -4
- data/lib/influxdb-rails.rb +13 -2
- data/lib/influxdb/rails/configuration.rb +8 -12
- data/lib/influxdb/rails/context.rb +6 -40
- data/lib/influxdb/rails/helpers/rspec_matchers.rb +48 -0
- data/lib/influxdb/rails/metric.rb +39 -0
- data/lib/influxdb/rails/middleware/action_mailer_subscriber.rb +22 -0
- data/lib/influxdb/rails/middleware/active_job_subscriber.rb +67 -0
- data/lib/influxdb/rails/middleware/active_record_subscriber.rb +26 -0
- data/lib/influxdb/rails/middleware/block_instrumentation_subscriber.rb +24 -0
- data/lib/influxdb/rails/middleware/render_subscriber.rb +15 -16
- data/lib/influxdb/rails/middleware/request_subscriber.rb +16 -21
- data/lib/influxdb/rails/middleware/sql_subscriber.rb +18 -18
- data/lib/influxdb/rails/middleware/subscriber.rb +40 -27
- data/lib/influxdb/rails/railtie.rb +15 -18
- data/lib/influxdb/rails/sql/normalizer.rb +3 -3
- data/lib/influxdb/rails/tags.rb +33 -0
- data/lib/influxdb/rails/test_client.rb +13 -0
- data/lib/influxdb/rails/values.rb +24 -0
- data/lib/influxdb/rails/version.rb +1 -1
- 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 +96 -0
- data/spec/requests/action_mailer_deliver_metrics_spec.rb +42 -0
- data/spec/requests/action_view_collection_metrics_spec.rb +57 -0
- data/spec/requests/action_view_partial_metrics_spec.rb +53 -0
- data/spec/requests/action_view_template_metrics_spec.rb +53 -0
- data/spec/requests/active_job_enqueue_metrics_spec.rb +56 -0
- data/spec/requests/active_job_perform_metrics_spec.rb +62 -0
- data/spec/requests/active_record_instantiation_metrics_spec.rb +56 -0
- data/spec/requests/active_record_sql_metrics_spec.rb +87 -0
- data/spec/requests/block_inistrumentation_spec.rb +55 -0
- data/spec/requests/context_spec.rb +27 -0
- data/spec/requests/logger_spec.rb +10 -0
- data/spec/spec_helper.rb +12 -4
- data/spec/support/broken_client.rb +11 -0
- data/spec/support/rails5/app.rb +48 -13
- data/spec/support/rails6/app.rb +83 -0
- data/spec/support/views/layouts/mailer.txt.erb +1 -0
- data/spec/support/views/{widgets → metrics}/_item.html.erb +0 -0
- data/spec/support/views/{widgets → metrics}/index.html.erb +0 -0
- data/spec/support/views/metrics/show.html.erb +4 -0
- data/spec/unit/block_instrumentation_spec.rb +18 -0
- data/spec/unit/tags.rb +47 -0
- metadata +123 -45
- data/.travis.yml +0 -37
- data/gemfiles/Gemfile.rails-4.2.x +0 -7
- data/gemfiles/Gemfile.rails-5.0.x +0 -7
- data/gemfiles/Gemfile.rails-5.1.x +0 -7
- data/lib/influxdb/rails/instrumentation.rb +0 -34
- data/lib/influxdb/rails/middleware/simple_subscriber.rb +0 -33
- data/spec/controllers/widgets_controller_spec.rb +0 -15
- data/spec/integration/integration_helper.rb +0 -1
- data/spec/integration/metrics_spec.rb +0 -27
- data/spec/shared_examples/data.rb +0 -61
- data/spec/support/rails4/app.rb +0 -48
- data/spec/unit/context_spec.rb +0 -40
- data/spec/unit/middleware/render_subscriber_spec.rb +0 -96
- data/spec/unit/middleware/request_subscriber_spec.rb +0 -103
- data/spec/unit/middleware/sql_subscriber_spec.rb +0 -108
@@ -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": "
|
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": "
|
34
|
-
"name": "
|
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": "
|
57
|
+
"description": "Controller Action Performance Insights based on influxdb-rails",
|
58
58
|
"editable": true,
|
59
|
-
"gnetId":
|
59
|
+
"gnetId": 11031,
|
60
60
|
"graphTooltip": 0,
|
61
61
|
"id": null,
|
62
|
-
"iteration":
|
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
|
-
"
|
68
|
-
"
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
77
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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":
|
105
|
+
"h": 3,
|
85
106
|
"w": 5,
|
86
107
|
"x": 0,
|
87
108
|
"y": 0
|
88
109
|
},
|
89
|
-
"id":
|
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
|
-
"
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
"
|
114
|
-
"
|
115
|
-
|
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
|
-
"
|
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": "
|
147
|
+
"type": "count"
|
157
148
|
}
|
158
149
|
]
|
159
150
|
],
|
@@ -172,79 +163,66 @@
|
|
172
163
|
]
|
173
164
|
}
|
174
165
|
],
|
175
|
-
"
|
176
|
-
"
|
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
|
-
"
|
191
|
-
"
|
192
|
-
"
|
193
|
-
"
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
171
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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":
|
208
|
-
"w":
|
202
|
+
"h": 3,
|
203
|
+
"w": 6,
|
209
204
|
"x": 5,
|
210
205
|
"y": 0
|
211
206
|
},
|
212
|
-
"id":
|
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
|
-
"
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
"
|
237
|
-
"
|
238
|
-
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
299
|
-
"
|
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
|
-
"
|
314
|
-
"
|
315
|
-
"
|
316
|
-
"
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
282
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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":
|
331
|
-
"w":
|
332
|
-
"x":
|
313
|
+
"h": 3,
|
314
|
+
"w": 6,
|
315
|
+
"x": 11,
|
333
316
|
"y": 0
|
334
317
|
},
|
335
|
-
"id":
|
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
|
-
"
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
"
|
360
|
-
"
|
361
|
-
|
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
|
-
"
|
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
|
-
"
|
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
|
-
"
|
422
|
-
"
|
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
|
-
"
|
437
|
-
"
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
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
|
-
[
|
393
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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
|
-
"
|
506
|
-
|
507
|
-
],
|
508
|
-
"type": "field"
|
404
|
+
"color": "#299c46",
|
405
|
+
"value": null
|
509
406
|
},
|
510
407
|
{
|
511
|
-
"
|
512
|
-
"
|
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
|
-
"
|
517
|
-
|
518
|
-
|
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": "${DS_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":
|
565
|
-
"w":
|
566
|
-
"x":
|
422
|
+
"h": 3,
|
423
|
+
"w": 7,
|
424
|
+
"x": 17,
|
567
425
|
"y": 0
|
568
426
|
},
|
569
|
-
"id":
|
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
|
-
"
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
"
|
594
|
-
"
|
595
|
-
|
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
|
-
"
|
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
|
-
"
|
471
|
+
"db"
|
618
472
|
],
|
619
473
|
"type": "field"
|
620
474
|
},
|
621
475
|
{
|
622
|
-
"params": [
|
623
|
-
|
624
|
-
],
|
625
|
-
"type": "math"
|
476
|
+
"params": [],
|
477
|
+
"type": "mean"
|
626
478
|
}
|
627
479
|
]
|
628
480
|
],
|
629
481
|
"tags": [
|
630
482
|
{
|
631
|
-
"key": "
|
632
|
-
"operator": "
|
633
|
-
"value": "
|
483
|
+
"key": "hook",
|
484
|
+
"operator": "=",
|
485
|
+
"value": "process_action"
|
634
486
|
},
|
635
487
|
{
|
636
488
|
"condition": "AND",
|
637
|
-
"key": "
|
638
|
-
"operator": "
|
639
|
-
"value": "
|
489
|
+
"key": "method",
|
490
|
+
"operator": "=~",
|
491
|
+
"value": "/^$Action$/"
|
640
492
|
}
|
641
493
|
]
|
642
494
|
}
|
643
495
|
],
|
644
|
-
"
|
645
|
-
"
|
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":
|
501
|
+
"bars": true,
|
660
502
|
"dashLength": 10,
|
661
503
|
"dashes": false,
|
662
|
-
"datasource": "${DS_INFLUXDB}",
|
504
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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":
|
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":
|
527
|
+
"show": true,
|
678
528
|
"total": false,
|
679
529
|
"values": false
|
680
530
|
},
|
681
|
-
"lines":
|
682
|
-
"linewidth":
|
531
|
+
"lines": false,
|
532
|
+
"linewidth": 7,
|
683
533
|
"links": [],
|
684
534
|
"nullPointMode": "null",
|
685
|
-
"options": {
|
686
|
-
"dataLinks": []
|
687
|
-
},
|
688
535
|
"percentage": false,
|
689
|
-
"
|
690
|
-
"
|
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
|
-
"
|
566
|
+
"null"
|
718
567
|
],
|
719
568
|
"type": "fill"
|
720
569
|
}
|
@@ -734,103 +583,7 @@
|
|
734
583
|
},
|
735
584
|
{
|
736
585
|
"params": [],
|
737
|
-
"type": "
|
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":
|
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":
|
639
|
+
"show": false
|
887
640
|
}
|
888
641
|
],
|
889
642
|
"yaxis": {
|
@@ -893,33 +646,40 @@
|
|
893
646
|
},
|
894
647
|
{
|
895
648
|
"columns": [],
|
896
|
-
"datasource": "${DS_INFLUXDB}",
|
649
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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":
|
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":
|
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
|
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
|
-
"datasource": "${DS_INFLUXDB}",
|
831
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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":
|
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": "
|
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
|
-
"datasource": "${DS_INFLUXDB}",
|
1050
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
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":
|
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":
|
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
|
-
"
|
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": "
|
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,19 +1259,22 @@
|
|
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":
|
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
|
{
|
1502
1275
|
"allValue": null,
|
1503
1276
|
"current": {},
|
1504
|
-
"datasource": "${DS_INFLUXDB}",
|
1277
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
1505
1278
|
"definition": "",
|
1506
1279
|
"hide": 0,
|
1507
1280
|
"includeAll": false,
|
@@ -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-
|
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": "
|
1574
|
-
"uid": "
|
1575
|
-
"version":
|
1576
|
-
}
|
1327
|
+
"title": "Performance (per Action)",
|
1328
|
+
"uid": "influxdb-rails-action",
|
1329
|
+
"version": 10
|
1330
|
+
}
|