influxdb-rails 1.0.1.beta3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -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": "InfluxDB",
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
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.beta3
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Bruckmayer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-13 00:00:00.000000000 Z
12
+ date: 2021-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: influxdb
@@ -205,14 +205,14 @@ dependencies:
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 1.7.0
208
+ version: 1.9.0
209
209
  type: :development
210
210
  prerelease: false
211
211
  version_requirements: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 1.7.0
215
+ version: 1.9.0
216
216
  - !ruby/object:Gem::Dependency
217
217
  name: sqlite3
218
218
  requirement: !ruby/object:Gem::Requirement
@@ -290,15 +290,25 @@ files:
290
290
  - sample-dashboard/Dockerfile
291
291
  - sample-dashboard/README.md
292
292
  - sample-dashboard/Rakefile
293
- - sample-dashboard/Ruby On Rails Performance (per Action).json
294
- - sample-dashboard/Ruby On Rails Performance (per Request).json
293
+ - sample-dashboard/Ruby On Rails ActiveJob.json
294
+ - sample-dashboard/Ruby On Rails Performance per Action.json
295
+ - sample-dashboard/Ruby On Rails Performance per Request.json
295
296
  - sample-dashboard/Ruby On Rails Performance.json
297
+ - sample-dashboard/Ruby On Rails Requests.json
298
+ - sample-dashboard/Ruby On Rails Slowlog by Action.json
299
+ - sample-dashboard/Ruby On Rails Slowlog by Request.json
300
+ - sample-dashboard/Ruby On Rails Slowlog by SQL.json
296
301
  - sample-dashboard/docker-compose.yml
302
+ - sample-dashboard/provisioning/activejob.json
297
303
  - sample-dashboard/provisioning/grafana-dashboards.yml
298
304
  - sample-dashboard/provisioning/grafana-datasource.yml
299
305
  - sample-dashboard/provisioning/performance-action.json
300
306
  - sample-dashboard/provisioning/performance-request.json
301
307
  - sample-dashboard/provisioning/performance.json
308
+ - sample-dashboard/provisioning/requests.json
309
+ - sample-dashboard/provisioning/slowlog-action.json
310
+ - sample-dashboard/provisioning/slowlog-requests.json
311
+ - sample-dashboard/provisioning/slowlog-sql.json
302
312
  - spec/requests/action_controller_metrics_spec.rb
303
313
  - spec/requests/action_mailer_deliver_metrics_spec.rb
304
314
  - spec/requests/action_view_collection_metrics_spec.rb
@@ -342,9 +352,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
342
352
  version: 2.4.0
343
353
  required_rubygems_version: !ruby/object:Gem::Requirement
344
354
  requirements:
345
- - - ">"
355
+ - - ">="
346
356
  - !ruby/object:Gem::Version
347
- version: 1.3.1
357
+ version: '0'
348
358
  requirements: []
349
359
  rubygems_version: 3.1.4
350
360
  signing_key: