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,278 @@
|
|
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": "A list of the slowest controller actions",
|
46
|
+
"editable": true,
|
47
|
+
"gnetId": null,
|
48
|
+
"graphTooltip": 0,
|
49
|
+
"id": null,
|
50
|
+
"links": [
|
51
|
+
{
|
52
|
+
"$$hashKey": "object:349",
|
53
|
+
"icon": "external link",
|
54
|
+
"keepTime": true,
|
55
|
+
"tags": [
|
56
|
+
"influxdb-rails"
|
57
|
+
],
|
58
|
+
"type": "dashboards"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"panels": [
|
62
|
+
{
|
63
|
+
"columns": [],
|
64
|
+
"datasource": "InfluxDB",
|
65
|
+
"description": "The list of slowest controller actions",
|
66
|
+
"fieldConfig": {
|
67
|
+
"defaults": {
|
68
|
+
"custom": {}
|
69
|
+
},
|
70
|
+
"overrides": []
|
71
|
+
},
|
72
|
+
"fontSize": "100%",
|
73
|
+
"gridPos": {
|
74
|
+
"h": 23,
|
75
|
+
"w": 24,
|
76
|
+
"x": 0,
|
77
|
+
"y": 0
|
78
|
+
},
|
79
|
+
"id": 2,
|
80
|
+
"links": [],
|
81
|
+
"pageSize": null,
|
82
|
+
"scroll": true,
|
83
|
+
"showHeader": true,
|
84
|
+
"sort": {
|
85
|
+
"col": 3,
|
86
|
+
"desc": true
|
87
|
+
},
|
88
|
+
"styles": [
|
89
|
+
{
|
90
|
+
"$$hashKey": "object:5125",
|
91
|
+
"alias": "Finished",
|
92
|
+
"align": "auto",
|
93
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
94
|
+
"pattern": "Time",
|
95
|
+
"type": "hidden"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"$$hashKey": "object:5127",
|
99
|
+
"alias": "Execution Time",
|
100
|
+
"align": "auto",
|
101
|
+
"colorMode": "value",
|
102
|
+
"colors": [
|
103
|
+
"rgba(50, 172, 45, 0.97)",
|
104
|
+
"rgba(237, 129, 40, 0.89)",
|
105
|
+
"rgba(245, 54, 54, 0.9)"
|
106
|
+
],
|
107
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
108
|
+
"decimals": 2,
|
109
|
+
"mappingType": 1,
|
110
|
+
"pattern": "max",
|
111
|
+
"thresholds": [
|
112
|
+
"3000",
|
113
|
+
"50000"
|
114
|
+
],
|
115
|
+
"type": "number",
|
116
|
+
"unit": "ms"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"$$hashKey": "object:5129",
|
120
|
+
"alias": "Controller Action",
|
121
|
+
"align": "auto",
|
122
|
+
"colorMode": null,
|
123
|
+
"colors": [
|
124
|
+
"rgba(245, 54, 54, 0.9)",
|
125
|
+
"rgba(237, 129, 40, 0.89)",
|
126
|
+
"rgba(50, 172, 45, 0.97)"
|
127
|
+
],
|
128
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
129
|
+
"decimals": 2,
|
130
|
+
"link": true,
|
131
|
+
"linkTargetBlank": true,
|
132
|
+
"linkTooltip": "View data per this Controller Action",
|
133
|
+
"linkUrl": "/d/influxdb-rails-action/ruby-on-rails-performance-per-action?var-Action=${__cell_1}&from=${__cell_2}&to=${__cell_0}",
|
134
|
+
"mappingType": 1,
|
135
|
+
"pattern": "method",
|
136
|
+
"thresholds": [],
|
137
|
+
"type": "string",
|
138
|
+
"unit": "short"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"$$hashKey": "object:505",
|
142
|
+
"alias": "Started",
|
143
|
+
"align": "",
|
144
|
+
"colorMode": null,
|
145
|
+
"colors": [
|
146
|
+
"rgba(245, 54, 54, 0.9)",
|
147
|
+
"rgba(237, 129, 40, 0.89)",
|
148
|
+
"rgba(50, 172, 45, 0.97)"
|
149
|
+
],
|
150
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
151
|
+
"decimals": 2,
|
152
|
+
"mappingType": 1,
|
153
|
+
"pattern": "started",
|
154
|
+
"thresholds": [],
|
155
|
+
"type": "hidden",
|
156
|
+
"unit": "short"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"$$hashKey": "object:826",
|
160
|
+
"alias": "Ended",
|
161
|
+
"align": "auto",
|
162
|
+
"colorMode": null,
|
163
|
+
"colors": [
|
164
|
+
"rgba(245, 54, 54, 0.9)",
|
165
|
+
"rgba(237, 129, 40, 0.89)",
|
166
|
+
"rgba(50, 172, 45, 0.97)"
|
167
|
+
],
|
168
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
169
|
+
"decimals": 2,
|
170
|
+
"mappingType": 1,
|
171
|
+
"pattern": "ended",
|
172
|
+
"thresholds": [],
|
173
|
+
"type": "hidden",
|
174
|
+
"unit": "short"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"targets": [
|
178
|
+
{
|
179
|
+
"groupBy": [
|
180
|
+
{
|
181
|
+
"params": [
|
182
|
+
"method"
|
183
|
+
],
|
184
|
+
"type": "tag"
|
185
|
+
}
|
186
|
+
],
|
187
|
+
"limit": "",
|
188
|
+
"measurement": "rails",
|
189
|
+
"orderByTime": "ASC",
|
190
|
+
"policy": "default",
|
191
|
+
"refId": "A",
|
192
|
+
"resultFormat": "table",
|
193
|
+
"select": [
|
194
|
+
[
|
195
|
+
{
|
196
|
+
"params": [
|
197
|
+
"started"
|
198
|
+
],
|
199
|
+
"type": "field"
|
200
|
+
}
|
201
|
+
],
|
202
|
+
[
|
203
|
+
{
|
204
|
+
"params": [
|
205
|
+
"controller"
|
206
|
+
],
|
207
|
+
"type": "field"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"params": [],
|
211
|
+
"type": "max"
|
212
|
+
}
|
213
|
+
]
|
214
|
+
],
|
215
|
+
"tags": [
|
216
|
+
{
|
217
|
+
"key": "hook",
|
218
|
+
"operator": "=",
|
219
|
+
"value": "process_action"
|
220
|
+
}
|
221
|
+
]
|
222
|
+
}
|
223
|
+
],
|
224
|
+
"title": "Slowest Actions",
|
225
|
+
"transform": "table",
|
226
|
+
"transformations": [
|
227
|
+
{
|
228
|
+
"id": "calculateField",
|
229
|
+
"options": {
|
230
|
+
"alias": "ended",
|
231
|
+
"binary": {
|
232
|
+
"left": "started",
|
233
|
+
"operator": "+",
|
234
|
+
"reducer": "sum",
|
235
|
+
"right": "max"
|
236
|
+
},
|
237
|
+
"mode": "binary",
|
238
|
+
"reduce": {
|
239
|
+
"reducer": "sum"
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
],
|
244
|
+
"type": "table-old"
|
245
|
+
}
|
246
|
+
],
|
247
|
+
"schemaVersion": 26,
|
248
|
+
"style": "dark",
|
249
|
+
"tags": [
|
250
|
+
"Performance",
|
251
|
+
"Ruby on Rails",
|
252
|
+
"influxdb-rails"
|
253
|
+
],
|
254
|
+
"templating": {
|
255
|
+
"list": []
|
256
|
+
},
|
257
|
+
"time": {
|
258
|
+
"from": "now-1h",
|
259
|
+
"to": "now"
|
260
|
+
},
|
261
|
+
"timepicker": {
|
262
|
+
"refresh_intervals": [
|
263
|
+
"10s",
|
264
|
+
"30s",
|
265
|
+
"1m",
|
266
|
+
"5m",
|
267
|
+
"15m",
|
268
|
+
"30m",
|
269
|
+
"1h",
|
270
|
+
"2h",
|
271
|
+
"1d"
|
272
|
+
]
|
273
|
+
},
|
274
|
+
"timezone": "",
|
275
|
+
"title": "Slowlog by Controller Action",
|
276
|
+
"uid": "influxdb-rails-slowlog-action",
|
277
|
+
"version": 12
|
278
|
+
}
|
@@ -0,0 +1,277 @@
|
|
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": "",
|
46
|
+
"editable": true,
|
47
|
+
"gnetId": null,
|
48
|
+
"graphTooltip": 0,
|
49
|
+
"id": null,
|
50
|
+
"links": [
|
51
|
+
{
|
52
|
+
"$$hashKey": "object:419",
|
53
|
+
"icon": "external link",
|
54
|
+
"tags": [
|
55
|
+
"influxdb-rails"
|
56
|
+
],
|
57
|
+
"type": "dashboards"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
"panels": [
|
61
|
+
{
|
62
|
+
"columns": [],
|
63
|
+
"datasource": "InfluxDB",
|
64
|
+
"description": "List of slowest requests served",
|
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": 4,
|
85
|
+
"desc": true
|
86
|
+
},
|
87
|
+
"styles": [
|
88
|
+
{
|
89
|
+
"$$hashKey": "object:5125",
|
90
|
+
"alias": "Finished",
|
91
|
+
"align": "auto",
|
92
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
93
|
+
"pattern": "Time",
|
94
|
+
"type": "hidden"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"$$hashKey": "object:5126",
|
98
|
+
"alias": "Started",
|
99
|
+
"align": "auto",
|
100
|
+
"colorMode": null,
|
101
|
+
"colors": [
|
102
|
+
"rgba(245, 54, 54, 0.9)",
|
103
|
+
"rgba(237, 129, 40, 0.89)",
|
104
|
+
"rgba(50, 172, 45, 0.97)"
|
105
|
+
],
|
106
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
107
|
+
"decimals": 2,
|
108
|
+
"pattern": "started",
|
109
|
+
"thresholds": [],
|
110
|
+
"type": "hidden",
|
111
|
+
"unit": "short"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"$$hashKey": "object:5127",
|
115
|
+
"alias": "Execution Time",
|
116
|
+
"align": "auto",
|
117
|
+
"colorMode": "value",
|
118
|
+
"colors": [
|
119
|
+
"rgba(50, 172, 45, 0.97)",
|
120
|
+
"rgba(237, 129, 40, 0.89)",
|
121
|
+
"rgba(245, 54, 54, 0.9)"
|
122
|
+
],
|
123
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
124
|
+
"decimals": 2,
|
125
|
+
"mappingType": 1,
|
126
|
+
"pattern": "max",
|
127
|
+
"thresholds": [
|
128
|
+
"3000",
|
129
|
+
"5000"
|
130
|
+
],
|
131
|
+
"type": "number",
|
132
|
+
"unit": "ms"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"$$hashKey": "object:5128",
|
136
|
+
"alias": "Request ID",
|
137
|
+
"align": "auto",
|
138
|
+
"colorMode": null,
|
139
|
+
"colors": [
|
140
|
+
"rgba(245, 54, 54, 0.9)",
|
141
|
+
"rgba(237, 129, 40, 0.89)",
|
142
|
+
"rgba(50, 172, 45, 0.97)"
|
143
|
+
],
|
144
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
145
|
+
"decimals": 2,
|
146
|
+
"link": true,
|
147
|
+
"linkTargetBlank": true,
|
148
|
+
"linkTooltip": "View data per this Request",
|
149
|
+
"linkUrl": "/d/influxdb-rails-request/ruby-on-rails-performance-per-request?var-request_id=${__cell}&from=${__cell_2}&to=${__cell_0}&var-method=${__cell_1}",
|
150
|
+
"mappingType": 1,
|
151
|
+
"pattern": "request_id",
|
152
|
+
"thresholds": [],
|
153
|
+
"type": "string",
|
154
|
+
"unit": "short",
|
155
|
+
"valueMaps": [
|
156
|
+
{
|
157
|
+
"$$hashKey": "object:367",
|
158
|
+
"text": "",
|
159
|
+
"value": ""
|
160
|
+
}
|
161
|
+
]
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"$$hashKey": "object:5129",
|
165
|
+
"alias": "Controller Action",
|
166
|
+
"align": "auto",
|
167
|
+
"colorMode": null,
|
168
|
+
"colors": [
|
169
|
+
"rgba(245, 54, 54, 0.9)",
|
170
|
+
"rgba(237, 129, 40, 0.89)",
|
171
|
+
"rgba(50, 172, 45, 0.97)"
|
172
|
+
],
|
173
|
+
"dateFormat": "YYYY-MM-DD HH:mm:ss",
|
174
|
+
"decimals": 2,
|
175
|
+
"link": true,
|
176
|
+
"linkTargetBlank": true,
|
177
|
+
"linkTooltip": "View data per this Controller Action",
|
178
|
+
"linkUrl": "/d/influxdb-rails-action/ruby-on-rails-performance-per-action?var-Action=${__cell}&from=$__from&to=$__to",
|
179
|
+
"mappingType": 1,
|
180
|
+
"pattern": "method",
|
181
|
+
"thresholds": [],
|
182
|
+
"type": "string",
|
183
|
+
"unit": "short"
|
184
|
+
}
|
185
|
+
],
|
186
|
+
"targets": [
|
187
|
+
{
|
188
|
+
"groupBy": [
|
189
|
+
{
|
190
|
+
"params": [
|
191
|
+
"method"
|
192
|
+
],
|
193
|
+
"type": "tag"
|
194
|
+
}
|
195
|
+
],
|
196
|
+
"limit": "20",
|
197
|
+
"measurement": "rails",
|
198
|
+
"orderByTime": "ASC",
|
199
|
+
"policy": "default",
|
200
|
+
"refId": "A",
|
201
|
+
"resultFormat": "table",
|
202
|
+
"select": [
|
203
|
+
[
|
204
|
+
{
|
205
|
+
"params": [
|
206
|
+
"started"
|
207
|
+
],
|
208
|
+
"type": "field"
|
209
|
+
}
|
210
|
+
],
|
211
|
+
[
|
212
|
+
{
|
213
|
+
"params": [
|
214
|
+
"request_id"
|
215
|
+
],
|
216
|
+
"type": "field"
|
217
|
+
}
|
218
|
+
],
|
219
|
+
[
|
220
|
+
{
|
221
|
+
"params": [
|
222
|
+
"controller"
|
223
|
+
],
|
224
|
+
"type": "field"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"params": [],
|
228
|
+
"type": "max"
|
229
|
+
}
|
230
|
+
]
|
231
|
+
],
|
232
|
+
"tags": [
|
233
|
+
{
|
234
|
+
"key": "hook",
|
235
|
+
"operator": "=",
|
236
|
+
"value": "process_action"
|
237
|
+
}
|
238
|
+
]
|
239
|
+
}
|
240
|
+
],
|
241
|
+
"title": "Slow Requests",
|
242
|
+
"transform": "table",
|
243
|
+
"type": "table-old"
|
244
|
+
}
|
245
|
+
],
|
246
|
+
"schemaVersion": 26,
|
247
|
+
"style": "dark",
|
248
|
+
"tags": [
|
249
|
+
"Performance",
|
250
|
+
"Ruby on Rails",
|
251
|
+
"influxdb-rails"
|
252
|
+
],
|
253
|
+
"templating": {
|
254
|
+
"list": []
|
255
|
+
},
|
256
|
+
"time": {
|
257
|
+
"from": "now-1h",
|
258
|
+
"to": "now"
|
259
|
+
},
|
260
|
+
"timepicker": {
|
261
|
+
"refresh_intervals": [
|
262
|
+
"10s",
|
263
|
+
"30s",
|
264
|
+
"1m",
|
265
|
+
"5m",
|
266
|
+
"15m",
|
267
|
+
"30m",
|
268
|
+
"1h",
|
269
|
+
"2h",
|
270
|
+
"1d"
|
271
|
+
]
|
272
|
+
},
|
273
|
+
"timezone": "",
|
274
|
+
"title": "Slowlog by Request",
|
275
|
+
"uid": "influxdb-rails-slowlog-request",
|
276
|
+
"version": 12
|
277
|
+
}
|