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.
- checksums.yaml +4 -4
- data/.github/workflows/spec.yml +2 -1
- data/CHANGELOG.md +10 -1
- data/README.md +40 -30
- data/influxdb-rails.gemspec +1 -1
- data/lib/influxdb/rails/tags.rb +1 -1
- data/lib/influxdb/rails/values.rb +1 -1
- data/lib/influxdb/rails/version.rb +1 -1
- data/sample-dashboard/Dockerfile +2 -2
- data/sample-dashboard/README.md +21 -28
- data/sample-dashboard/Rakefile +8 -3
- 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
- metadata +18 -8
@@ -0,0 +1,328 @@
|
|
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": "datasource",
|
21
|
+
"id": "influxdb",
|
22
|
+
"name": "InfluxDB",
|
23
|
+
"version": "1.0.0"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"type": "panel",
|
27
|
+
"id": "table-old",
|
28
|
+
"name": "Table (old)",
|
29
|
+
"version": ""
|
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
|
+
"description": "The sloweds queries in your app in the last hour",
|
46
|
+
"editable": true,
|
47
|
+
"gnetId": null,
|
48
|
+
"graphTooltip": 0,
|
49
|
+
"id": null,
|
50
|
+
"links": [
|
51
|
+
{
|
52
|
+
"$$hashKey": "object:40",
|
53
|
+
"icon": "external link",
|
54
|
+
"tags": [
|
55
|
+
"influxdb-rails"
|
56
|
+
],
|
57
|
+
"type": "dashboards"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
"panels": [
|
61
|
+
{
|
62
|
+
"columns": [],
|
63
|
+
"datasource": "${DS_INFLUXDB-RAILS}",
|
64
|
+
"description": "Data for the selected range by database query.\n\n- Count: Number of occurrences\n- Mean: Average time spent\n- Median: Median time spent\n- Maximum: Slowest occurrence\n\n[Average vs. Median?](https://www.differencebetween.com/difference-between-mean-and-median/)",
|
65
|
+
"fieldConfig": {
|
66
|
+
"defaults": {
|
67
|
+
"custom": {}
|
68
|
+
},
|
69
|
+
"overrides": []
|
70
|
+
},
|
71
|
+
"fontSize": "100%",
|
72
|
+
"gridPos": {
|
73
|
+
"h": 23,
|
74
|
+
"w": 24,
|
75
|
+
"x": 0,
|
76
|
+
"y": 0
|
77
|
+
},
|
78
|
+
"id": 2,
|
79
|
+
"links": [],
|
80
|
+
"pageSize": null,
|
81
|
+
"scroll": true,
|
82
|
+
"showHeader": true,
|
83
|
+
"sort": {
|
84
|
+
"col": 6,
|
85
|
+
"desc": true
|
86
|
+
},
|
87
|
+
"styles": [
|
88
|
+
{
|
89
|
+
"alias": "Time",
|
90
|
+
"align": "auto",
|
91
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
92
|
+
"pattern": "Time",
|
93
|
+
"type": "hidden"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"alias": "Count",
|
97
|
+
"align": "auto",
|
98
|
+
"colorMode": null,
|
99
|
+
"colors": [
|
100
|
+
"rgba(245, 54, 54, 0.9)",
|
101
|
+
"rgba(237, 129, 40, 0.89)",
|
102
|
+
"rgba(50, 172, 45, 0.97)"
|
103
|
+
],
|
104
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
105
|
+
"decimals": null,
|
106
|
+
"mappingType": 1,
|
107
|
+
"pattern": "count",
|
108
|
+
"thresholds": [],
|
109
|
+
"type": "number",
|
110
|
+
"unit": "short"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"alias": "Mean",
|
114
|
+
"align": "auto",
|
115
|
+
"colorMode": null,
|
116
|
+
"colors": [
|
117
|
+
"rgba(245, 54, 54, 0.9)",
|
118
|
+
"rgba(237, 129, 40, 0.89)",
|
119
|
+
"rgba(50, 172, 45, 0.97)"
|
120
|
+
],
|
121
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
122
|
+
"decimals": 2,
|
123
|
+
"mappingType": 1,
|
124
|
+
"pattern": "mean",
|
125
|
+
"thresholds": [],
|
126
|
+
"type": "number",
|
127
|
+
"unit": "ms"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"alias": "Median",
|
131
|
+
"align": "auto",
|
132
|
+
"colorMode": null,
|
133
|
+
"colors": [
|
134
|
+
"rgba(245, 54, 54, 0.9)",
|
135
|
+
"rgba(237, 129, 40, 0.89)",
|
136
|
+
"rgba(50, 172, 45, 0.97)"
|
137
|
+
],
|
138
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
139
|
+
"decimals": 2,
|
140
|
+
"mappingType": 1,
|
141
|
+
"pattern": "median",
|
142
|
+
"thresholds": [],
|
143
|
+
"type": "number",
|
144
|
+
"unit": "ms"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"alias": "Controller Action",
|
148
|
+
"align": "auto",
|
149
|
+
"colorMode": null,
|
150
|
+
"colors": [
|
151
|
+
"rgba(245, 54, 54, 0.9)",
|
152
|
+
"rgba(237, 129, 40, 0.89)",
|
153
|
+
"rgba(50, 172, 45, 0.97)"
|
154
|
+
],
|
155
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
156
|
+
"decimals": 2,
|
157
|
+
"link": true,
|
158
|
+
"linkTargetBlank": true,
|
159
|
+
"linkTooltip": "View data per this Controller Action",
|
160
|
+
"linkUrl": "/d/influxdb-rails-action/ruby-on-rails-performance-per-action?var-Action=${__cell}&from=$__from&to=$__to",
|
161
|
+
"mappingType": 1,
|
162
|
+
"pattern": "location",
|
163
|
+
"thresholds": [],
|
164
|
+
"type": "string",
|
165
|
+
"unit": "short"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"alias": "Name of the operation",
|
169
|
+
"align": "auto",
|
170
|
+
"colorMode": null,
|
171
|
+
"colors": [
|
172
|
+
"rgba(245, 54, 54, 0.9)",
|
173
|
+
"rgba(237, 129, 40, 0.89)",
|
174
|
+
"rgba(50, 172, 45, 0.97)"
|
175
|
+
],
|
176
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
177
|
+
"decimals": 2,
|
178
|
+
"mappingType": 1,
|
179
|
+
"pattern": "name",
|
180
|
+
"thresholds": [],
|
181
|
+
"type": "string",
|
182
|
+
"unit": "short",
|
183
|
+
"valueMaps": [
|
184
|
+
{
|
185
|
+
"text": "Raw",
|
186
|
+
"value": ""
|
187
|
+
}
|
188
|
+
]
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"alias": "Maximum",
|
192
|
+
"align": "auto",
|
193
|
+
"colorMode": "value",
|
194
|
+
"colors": [
|
195
|
+
"rgba(50, 172, 45, 0.97)",
|
196
|
+
"rgba(237, 129, 40, 0.89)",
|
197
|
+
"rgba(245, 54, 54, 0.9)"
|
198
|
+
],
|
199
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
200
|
+
"decimals": 2,
|
201
|
+
"mappingType": 1,
|
202
|
+
"pattern": "max",
|
203
|
+
"thresholds": [
|
204
|
+
"3000",
|
205
|
+
"5000"
|
206
|
+
],
|
207
|
+
"type": "number",
|
208
|
+
"unit": "ms"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
"targets": [
|
212
|
+
{
|
213
|
+
"groupBy": [
|
214
|
+
{
|
215
|
+
"params": [
|
216
|
+
"name"
|
217
|
+
],
|
218
|
+
"type": "tag"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"params": [
|
222
|
+
"location"
|
223
|
+
],
|
224
|
+
"type": "tag"
|
225
|
+
}
|
226
|
+
],
|
227
|
+
"measurement": "rails",
|
228
|
+
"orderByTime": "ASC",
|
229
|
+
"policy": "default",
|
230
|
+
"refId": "A",
|
231
|
+
"resultFormat": "table",
|
232
|
+
"select": [
|
233
|
+
[
|
234
|
+
{
|
235
|
+
"params": [
|
236
|
+
"value"
|
237
|
+
],
|
238
|
+
"type": "field"
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"params": [],
|
242
|
+
"type": "count"
|
243
|
+
}
|
244
|
+
],
|
245
|
+
[
|
246
|
+
{
|
247
|
+
"params": [
|
248
|
+
"value"
|
249
|
+
],
|
250
|
+
"type": "field"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"params": [],
|
254
|
+
"type": "mean"
|
255
|
+
}
|
256
|
+
],
|
257
|
+
[
|
258
|
+
{
|
259
|
+
"params": [
|
260
|
+
"value"
|
261
|
+
],
|
262
|
+
"type": "field"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"params": [],
|
266
|
+
"type": "median"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
[
|
270
|
+
{
|
271
|
+
"params": [
|
272
|
+
"value"
|
273
|
+
],
|
274
|
+
"type": "field"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"params": [],
|
278
|
+
"type": "max"
|
279
|
+
}
|
280
|
+
]
|
281
|
+
],
|
282
|
+
"tags": [
|
283
|
+
{
|
284
|
+
"key": "hook",
|
285
|
+
"operator": "=",
|
286
|
+
"value": "sql"
|
287
|
+
}
|
288
|
+
]
|
289
|
+
}
|
290
|
+
],
|
291
|
+
"title": "Slowest Database Query",
|
292
|
+
"transform": "table",
|
293
|
+
"type": "table-old"
|
294
|
+
}
|
295
|
+
],
|
296
|
+
"schemaVersion": 26,
|
297
|
+
"style": "dark",
|
298
|
+
"tags": [
|
299
|
+
"Performance",
|
300
|
+
"Ruby on Rails",
|
301
|
+
"influxdb-rails"
|
302
|
+
],
|
303
|
+
"templating": {
|
304
|
+
"list": []
|
305
|
+
},
|
306
|
+
"time": {
|
307
|
+
"from": "now-1h",
|
308
|
+
"to": "now"
|
309
|
+
},
|
310
|
+
"timepicker": {
|
311
|
+
"hidden": false,
|
312
|
+
"refresh_intervals": [
|
313
|
+
"10s",
|
314
|
+
"30s",
|
315
|
+
"1m",
|
316
|
+
"5m",
|
317
|
+
"15m",
|
318
|
+
"30m",
|
319
|
+
"1h",
|
320
|
+
"2h",
|
321
|
+
"1d"
|
322
|
+
]
|
323
|
+
},
|
324
|
+
"timezone": "",
|
325
|
+
"title": "Slowlog by SQL Query",
|
326
|
+
"uid": "influxdb-rails-slowlog-sql",
|
327
|
+
"version": 14
|
328
|
+
}
|
@@ -13,7 +13,7 @@ services:
|
|
13
13
|
ports:
|
14
14
|
- 8086:8086
|
15
15
|
grafana:
|
16
|
-
image: grafana/grafana:
|
16
|
+
image: grafana/grafana:7.4.5
|
17
17
|
ports:
|
18
18
|
- 3000:3000
|
19
19
|
depends_on:
|
@@ -24,6 +24,11 @@ services:
|
|
24
24
|
- ./provisioning/performance.json:/var/lib/grafana/dashboards/performance.json:ro
|
25
25
|
- ./provisioning/performance-action.json:/var/lib/grafana/dashboards/performance-action.json:ro
|
26
26
|
- ./provisioning/performance-request.json:/var/lib/grafana/dashboards/performance-request.json:ro
|
27
|
+
- ./provisioning/activejob.json:/var/lib/grafana/dashboards/activejob.json.json:ro
|
28
|
+
- ./provisioning/requests.json:/var/lib/grafana/dashboards/requests.json:ro
|
29
|
+
- ./provisioning/slowlog-action.json:/var/lib/grafana/dashboards/slowlog-action.json.json:ro
|
30
|
+
- ./provisioning/slowlog-requests.json:/var/lib/grafana/dashboards/slowlog-requests.json:ro
|
31
|
+
- ./provisioning/slowlog-sql.json:/var/lib/grafana/dashboards/slowlog-sql.json:ro
|
27
32
|
- grafanadata:/var/lib/grafana
|
28
33
|
rails:
|
29
34
|
image: hennevogel/influxdb-rails-sample
|
@@ -0,0 +1,600 @@
|
|
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": 1616428804223,
|
50
|
+
"links": [
|
51
|
+
{
|
52
|
+
"icon": "external link",
|
53
|
+
"includeVars": true,
|
54
|
+
"keepTime": true,
|
55
|
+
"tags": [
|
56
|
+
"influxdb-rails"
|
57
|
+
],
|
58
|
+
"type": "dashboards"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"panels": [
|
62
|
+
{
|
63
|
+
"aliasColors": {},
|
64
|
+
"bars": false,
|
65
|
+
"cacheTimeout": null,
|
66
|
+
"dashLength": 10,
|
67
|
+
"dashes": false,
|
68
|
+
"datasource": "InfluxDB",
|
69
|
+
"decimals": 1,
|
70
|
+
"description": "Number of jobs per queue",
|
71
|
+
"fieldConfig": {
|
72
|
+
"defaults": {
|
73
|
+
"custom": {},
|
74
|
+
"links": []
|
75
|
+
},
|
76
|
+
"overrides": []
|
77
|
+
},
|
78
|
+
"fill": 3,
|
79
|
+
"fillGradient": 0,
|
80
|
+
"gridPos": {
|
81
|
+
"h": 7,
|
82
|
+
"w": 24,
|
83
|
+
"x": 0,
|
84
|
+
"y": 0
|
85
|
+
},
|
86
|
+
"hiddenSeries": false,
|
87
|
+
"hideTimeOverride": false,
|
88
|
+
"id": 2,
|
89
|
+
"legend": {
|
90
|
+
"alignAsTable": true,
|
91
|
+
"avg": false,
|
92
|
+
"current": false,
|
93
|
+
"hideEmpty": false,
|
94
|
+
"hideZero": false,
|
95
|
+
"max": false,
|
96
|
+
"min": false,
|
97
|
+
"rightSide": true,
|
98
|
+
"show": true,
|
99
|
+
"sideWidth": 250,
|
100
|
+
"total": false,
|
101
|
+
"values": false
|
102
|
+
},
|
103
|
+
"lines": true,
|
104
|
+
"linewidth": 1,
|
105
|
+
"links": [],
|
106
|
+
"nullPointMode": "null as zero",
|
107
|
+
"paceLength": 10,
|
108
|
+
"percentage": false,
|
109
|
+
"pluginVersion": "7.1.1",
|
110
|
+
"pointradius": 0.5,
|
111
|
+
"points": false,
|
112
|
+
"renderer": "flot",
|
113
|
+
"seriesOverrides": [],
|
114
|
+
"spaceLength": 10,
|
115
|
+
"stack": true,
|
116
|
+
"steppedLine": false,
|
117
|
+
"targets": [
|
118
|
+
{
|
119
|
+
"alias": "$tag_queue",
|
120
|
+
"groupBy": [
|
121
|
+
{
|
122
|
+
"params": [
|
123
|
+
"$per"
|
124
|
+
],
|
125
|
+
"type": "time"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"params": [
|
129
|
+
"queue"
|
130
|
+
],
|
131
|
+
"type": "tag"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"params": [
|
135
|
+
"null"
|
136
|
+
],
|
137
|
+
"type": "fill"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
"measurement": "rails",
|
141
|
+
"orderByTime": "ASC",
|
142
|
+
"policy": "default",
|
143
|
+
"refId": "A",
|
144
|
+
"resultFormat": "time_series",
|
145
|
+
"select": [
|
146
|
+
[
|
147
|
+
{
|
148
|
+
"params": [
|
149
|
+
"value"
|
150
|
+
],
|
151
|
+
"type": "field"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"params": [],
|
155
|
+
"type": "count"
|
156
|
+
}
|
157
|
+
]
|
158
|
+
],
|
159
|
+
"tags": [
|
160
|
+
{
|
161
|
+
"key": "hook",
|
162
|
+
"operator": "=",
|
163
|
+
"value": "enqueue"
|
164
|
+
}
|
165
|
+
]
|
166
|
+
}
|
167
|
+
],
|
168
|
+
"thresholds": [],
|
169
|
+
"timeFrom": null,
|
170
|
+
"timeRegions": [],
|
171
|
+
"timeShift": null,
|
172
|
+
"title": "by Queues",
|
173
|
+
"tooltip": {
|
174
|
+
"shared": true,
|
175
|
+
"sort": 0,
|
176
|
+
"value_type": "individual"
|
177
|
+
},
|
178
|
+
"type": "graph",
|
179
|
+
"xaxis": {
|
180
|
+
"buckets": null,
|
181
|
+
"mode": "time",
|
182
|
+
"name": null,
|
183
|
+
"show": true,
|
184
|
+
"values": []
|
185
|
+
},
|
186
|
+
"yaxes": [
|
187
|
+
{
|
188
|
+
"format": "short",
|
189
|
+
"label": "jobs",
|
190
|
+
"logBase": 1,
|
191
|
+
"max": null,
|
192
|
+
"min": null,
|
193
|
+
"show": true
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"format": "short",
|
197
|
+
"label": null,
|
198
|
+
"logBase": 1,
|
199
|
+
"max": null,
|
200
|
+
"min": null,
|
201
|
+
"show": false
|
202
|
+
}
|
203
|
+
],
|
204
|
+
"yaxis": {
|
205
|
+
"align": false,
|
206
|
+
"alignLevel": null
|
207
|
+
}
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"aliasColors": {},
|
211
|
+
"bars": false,
|
212
|
+
"dashLength": 10,
|
213
|
+
"dashes": false,
|
214
|
+
"datasource": "InfluxDB",
|
215
|
+
"description": "Number of jobs per class",
|
216
|
+
"fieldConfig": {
|
217
|
+
"defaults": {
|
218
|
+
"custom": {},
|
219
|
+
"links": []
|
220
|
+
},
|
221
|
+
"overrides": []
|
222
|
+
},
|
223
|
+
"fill": 1,
|
224
|
+
"fillGradient": 0,
|
225
|
+
"gridPos": {
|
226
|
+
"h": 8,
|
227
|
+
"w": 24,
|
228
|
+
"x": 0,
|
229
|
+
"y": 7
|
230
|
+
},
|
231
|
+
"hiddenSeries": false,
|
232
|
+
"id": 4,
|
233
|
+
"legend": {
|
234
|
+
"alignAsTable": true,
|
235
|
+
"avg": false,
|
236
|
+
"current": false,
|
237
|
+
"max": false,
|
238
|
+
"min": false,
|
239
|
+
"rightSide": true,
|
240
|
+
"show": true,
|
241
|
+
"sideWidth": 250,
|
242
|
+
"total": false,
|
243
|
+
"values": false
|
244
|
+
},
|
245
|
+
"lines": true,
|
246
|
+
"linewidth": 1,
|
247
|
+
"links": [],
|
248
|
+
"nullPointMode": "null as zero",
|
249
|
+
"paceLength": 10,
|
250
|
+
"percentage": false,
|
251
|
+
"pluginVersion": "7.1.1",
|
252
|
+
"pointradius": 2,
|
253
|
+
"points": false,
|
254
|
+
"renderer": "flot",
|
255
|
+
"seriesOverrides": [],
|
256
|
+
"spaceLength": 10,
|
257
|
+
"stack": false,
|
258
|
+
"steppedLine": false,
|
259
|
+
"targets": [
|
260
|
+
{
|
261
|
+
"alias": "$tag_job",
|
262
|
+
"groupBy": [
|
263
|
+
{
|
264
|
+
"params": [
|
265
|
+
"$per"
|
266
|
+
],
|
267
|
+
"type": "time"
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"params": [
|
271
|
+
"job"
|
272
|
+
],
|
273
|
+
"type": "tag"
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"params": [
|
277
|
+
"null"
|
278
|
+
],
|
279
|
+
"type": "fill"
|
280
|
+
}
|
281
|
+
],
|
282
|
+
"measurement": "rails",
|
283
|
+
"orderByTime": "ASC",
|
284
|
+
"policy": "default",
|
285
|
+
"refId": "A",
|
286
|
+
"resultFormat": "time_series",
|
287
|
+
"select": [
|
288
|
+
[
|
289
|
+
{
|
290
|
+
"params": [
|
291
|
+
"value"
|
292
|
+
],
|
293
|
+
"type": "field"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"params": [],
|
297
|
+
"type": "count"
|
298
|
+
}
|
299
|
+
]
|
300
|
+
],
|
301
|
+
"tags": [
|
302
|
+
{
|
303
|
+
"key": "hook",
|
304
|
+
"operator": "=",
|
305
|
+
"value": "perform_start"
|
306
|
+
}
|
307
|
+
]
|
308
|
+
}
|
309
|
+
],
|
310
|
+
"thresholds": [],
|
311
|
+
"timeFrom": null,
|
312
|
+
"timeRegions": [],
|
313
|
+
"timeShift": null,
|
314
|
+
"title": "by Classes",
|
315
|
+
"tooltip": {
|
316
|
+
"shared": true,
|
317
|
+
"sort": 0,
|
318
|
+
"value_type": "individual"
|
319
|
+
},
|
320
|
+
"type": "graph",
|
321
|
+
"xaxis": {
|
322
|
+
"buckets": null,
|
323
|
+
"mode": "time",
|
324
|
+
"name": null,
|
325
|
+
"show": true,
|
326
|
+
"values": []
|
327
|
+
},
|
328
|
+
"yaxes": [
|
329
|
+
{
|
330
|
+
"format": "short",
|
331
|
+
"label": null,
|
332
|
+
"logBase": 1,
|
333
|
+
"max": null,
|
334
|
+
"min": null,
|
335
|
+
"show": true
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"format": "short",
|
339
|
+
"label": null,
|
340
|
+
"logBase": 1,
|
341
|
+
"max": null,
|
342
|
+
"min": null,
|
343
|
+
"show": false
|
344
|
+
}
|
345
|
+
],
|
346
|
+
"yaxis": {
|
347
|
+
"align": false,
|
348
|
+
"alignLevel": null
|
349
|
+
}
|
350
|
+
},
|
351
|
+
{
|
352
|
+
"aliasColors": {},
|
353
|
+
"bars": true,
|
354
|
+
"dashLength": 10,
|
355
|
+
"dashes": false,
|
356
|
+
"datasource": "InfluxDB",
|
357
|
+
"description": "Performance of jobs by class",
|
358
|
+
"fieldConfig": {
|
359
|
+
"defaults": {
|
360
|
+
"custom": {},
|
361
|
+
"links": [],
|
362
|
+
"unit": "ms"
|
363
|
+
},
|
364
|
+
"overrides": []
|
365
|
+
},
|
366
|
+
"fill": 0,
|
367
|
+
"fillGradient": 0,
|
368
|
+
"gridPos": {
|
369
|
+
"h": 7,
|
370
|
+
"w": 24,
|
371
|
+
"x": 0,
|
372
|
+
"y": 15
|
373
|
+
},
|
374
|
+
"hiddenSeries": false,
|
375
|
+
"id": 5,
|
376
|
+
"legend": {
|
377
|
+
"alignAsTable": true,
|
378
|
+
"avg": false,
|
379
|
+
"current": false,
|
380
|
+
"max": false,
|
381
|
+
"min": false,
|
382
|
+
"rightSide": true,
|
383
|
+
"show": true,
|
384
|
+
"sideWidth": 250,
|
385
|
+
"total": false,
|
386
|
+
"values": false
|
387
|
+
},
|
388
|
+
"lines": false,
|
389
|
+
"linewidth": 1,
|
390
|
+
"links": [],
|
391
|
+
"nullPointMode": "null",
|
392
|
+
"paceLength": 10,
|
393
|
+
"percentage": false,
|
394
|
+
"pluginVersion": "7.1.1",
|
395
|
+
"pointradius": 2,
|
396
|
+
"points": true,
|
397
|
+
"renderer": "flot",
|
398
|
+
"seriesOverrides": [],
|
399
|
+
"spaceLength": 10,
|
400
|
+
"stack": false,
|
401
|
+
"steppedLine": false,
|
402
|
+
"targets": [
|
403
|
+
{
|
404
|
+
"alias": "$tag_job",
|
405
|
+
"groupBy": [
|
406
|
+
{
|
407
|
+
"params": [
|
408
|
+
"$__interval"
|
409
|
+
],
|
410
|
+
"type": "time"
|
411
|
+
},
|
412
|
+
{
|
413
|
+
"params": [
|
414
|
+
"job"
|
415
|
+
],
|
416
|
+
"type": "tag"
|
417
|
+
}
|
418
|
+
],
|
419
|
+
"measurement": "rails",
|
420
|
+
"orderByTime": "ASC",
|
421
|
+
"policy": "default",
|
422
|
+
"refId": "A",
|
423
|
+
"resultFormat": "time_series",
|
424
|
+
"select": [
|
425
|
+
[
|
426
|
+
{
|
427
|
+
"params": [
|
428
|
+
"value"
|
429
|
+
],
|
430
|
+
"type": "field"
|
431
|
+
},
|
432
|
+
{
|
433
|
+
"params": [
|
434
|
+
"99"
|
435
|
+
],
|
436
|
+
"type": "percentile"
|
437
|
+
}
|
438
|
+
]
|
439
|
+
],
|
440
|
+
"tags": [
|
441
|
+
{
|
442
|
+
"key": "hook",
|
443
|
+
"operator": "=",
|
444
|
+
"value": "perform"
|
445
|
+
}
|
446
|
+
]
|
447
|
+
}
|
448
|
+
],
|
449
|
+
"thresholds": [],
|
450
|
+
"timeFrom": null,
|
451
|
+
"timeRegions": [],
|
452
|
+
"timeShift": null,
|
453
|
+
"title": "Performance",
|
454
|
+
"tooltip": {
|
455
|
+
"shared": true,
|
456
|
+
"sort": 0,
|
457
|
+
"value_type": "individual"
|
458
|
+
},
|
459
|
+
"type": "graph",
|
460
|
+
"xaxis": {
|
461
|
+
"buckets": null,
|
462
|
+
"mode": "time",
|
463
|
+
"name": null,
|
464
|
+
"show": true,
|
465
|
+
"values": []
|
466
|
+
},
|
467
|
+
"yaxes": [
|
468
|
+
{
|
469
|
+
"format": "ms",
|
470
|
+
"label": null,
|
471
|
+
"logBase": 2,
|
472
|
+
"max": null,
|
473
|
+
"min": null,
|
474
|
+
"show": true
|
475
|
+
},
|
476
|
+
{
|
477
|
+
"format": "short",
|
478
|
+
"label": null,
|
479
|
+
"logBase": 1,
|
480
|
+
"max": null,
|
481
|
+
"min": null,
|
482
|
+
"show": false
|
483
|
+
}
|
484
|
+
],
|
485
|
+
"yaxis": {
|
486
|
+
"align": false,
|
487
|
+
"alignLevel": null
|
488
|
+
}
|
489
|
+
}
|
490
|
+
],
|
491
|
+
"refresh": "5m",
|
492
|
+
"schemaVersion": 26,
|
493
|
+
"style": "dark",
|
494
|
+
"tags": [
|
495
|
+
"influxdb-rails",
|
496
|
+
"Health",
|
497
|
+
"Performance",
|
498
|
+
"Ruby on Rails"
|
499
|
+
],
|
500
|
+
"templating": {
|
501
|
+
"list": [
|
502
|
+
{
|
503
|
+
"auto": true,
|
504
|
+
"auto_count": "50",
|
505
|
+
"auto_min": "",
|
506
|
+
"current": {
|
507
|
+
"selected": false,
|
508
|
+
"text": "auto",
|
509
|
+
"value": "$__auto_interval_per"
|
510
|
+
},
|
511
|
+
"hide": 0,
|
512
|
+
"label": null,
|
513
|
+
"name": "per",
|
514
|
+
"options": [
|
515
|
+
{
|
516
|
+
"selected": true,
|
517
|
+
"text": "auto",
|
518
|
+
"value": "$__auto_interval_per"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"selected": false,
|
522
|
+
"text": "1m",
|
523
|
+
"value": "1m"
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"selected": false,
|
527
|
+
"text": "10m",
|
528
|
+
"value": "10m"
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"selected": false,
|
532
|
+
"text": "30m",
|
533
|
+
"value": "30m"
|
534
|
+
},
|
535
|
+
{
|
536
|
+
"selected": false,
|
537
|
+
"text": "1h",
|
538
|
+
"value": "1h"
|
539
|
+
},
|
540
|
+
{
|
541
|
+
"selected": false,
|
542
|
+
"text": "6h",
|
543
|
+
"value": "6h"
|
544
|
+
},
|
545
|
+
{
|
546
|
+
"selected": false,
|
547
|
+
"text": "12h",
|
548
|
+
"value": "12h"
|
549
|
+
},
|
550
|
+
{
|
551
|
+
"selected": false,
|
552
|
+
"text": "1d",
|
553
|
+
"value": "1d"
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"selected": false,
|
557
|
+
"text": "7d",
|
558
|
+
"value": "7d"
|
559
|
+
},
|
560
|
+
{
|
561
|
+
"selected": false,
|
562
|
+
"text": "14d",
|
563
|
+
"value": "14d"
|
564
|
+
},
|
565
|
+
{
|
566
|
+
"selected": false,
|
567
|
+
"text": "30d",
|
568
|
+
"value": "30d"
|
569
|
+
}
|
570
|
+
],
|
571
|
+
"query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
|
572
|
+
"queryValue": "",
|
573
|
+
"refresh": 2,
|
574
|
+
"skipUrlSync": false,
|
575
|
+
"type": "interval"
|
576
|
+
}
|
577
|
+
]
|
578
|
+
},
|
579
|
+
"time": {
|
580
|
+
"from": "now-1h",
|
581
|
+
"to": "now"
|
582
|
+
},
|
583
|
+
"timepicker": {
|
584
|
+
"refresh_intervals": [
|
585
|
+
"10s",
|
586
|
+
"30s",
|
587
|
+
"1m",
|
588
|
+
"5m",
|
589
|
+
"15m",
|
590
|
+
"30m",
|
591
|
+
"1h",
|
592
|
+
"2h",
|
593
|
+
"1d"
|
594
|
+
]
|
595
|
+
},
|
596
|
+
"timezone": "",
|
597
|
+
"title": "ActiveJob",
|
598
|
+
"uid": "influxdb-rails-activejob",
|
599
|
+
"version": 12
|
600
|
+
}
|