influxdb-rails 1.0.0.beta1 → 1.0.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +11 -0
  3. data/.gitignore +2 -0
  4. data/.rspec +1 -0
  5. data/.rubocop.yml +7 -1
  6. data/.travis.yml +9 -10
  7. data/CHANGELOG.md +48 -11
  8. data/Gemfile +6 -0
  9. data/README.md +278 -100
  10. data/Rakefile +17 -18
  11. data/gemfiles/Gemfile.rails-5.0.x +2 -0
  12. data/gemfiles/Gemfile.rails-6.0.x +10 -0
  13. data/influxdb-rails.gemspec +20 -10
  14. data/lib/influxdb-rails.rb +35 -118
  15. data/lib/influxdb/rails/configuration.rb +99 -179
  16. data/lib/influxdb/rails/context.rb +26 -0
  17. data/lib/influxdb/rails/helpers/rspec_matchers.rb +48 -0
  18. data/lib/influxdb/rails/metric.rb +39 -0
  19. data/lib/influxdb/rails/middleware/active_job_subscriber.rb +67 -0
  20. data/lib/influxdb/rails/middleware/active_record_subscriber.rb +26 -0
  21. data/lib/influxdb/rails/middleware/block_instrumentation_subscriber.rb +24 -0
  22. data/lib/influxdb/rails/middleware/render_subscriber.rb +32 -0
  23. data/lib/influxdb/rails/middleware/request_subscriber.rb +44 -0
  24. data/lib/influxdb/rails/middleware/sql_subscriber.rb +37 -0
  25. data/lib/influxdb/rails/middleware/subscriber.rb +68 -0
  26. data/lib/influxdb/rails/railtie.rb +28 -25
  27. data/lib/influxdb/rails/sql/normalizer.rb +27 -0
  28. data/lib/influxdb/rails/sql/query.rb +32 -0
  29. data/lib/influxdb/rails/tags.rb +33 -0
  30. data/lib/influxdb/rails/test_client.rb +13 -0
  31. data/lib/influxdb/rails/values.rb +24 -0
  32. data/lib/influxdb/rails/version.rb +1 -1
  33. data/lib/rails/generators/influxdb/influxdb_generator.rb +1 -1
  34. data/lib/rails/generators/influxdb/templates/initializer.rb +39 -9
  35. data/sample-dashboard/Dockerfile +24 -0
  36. data/sample-dashboard/README.md +74 -0
  37. data/sample-dashboard/Rakefile +9 -0
  38. data/sample-dashboard/Ruby On Rails Performance (per Action).json +1576 -0
  39. data/sample-dashboard/Ruby On Rails Performance (per Request).json +1053 -0
  40. data/sample-dashboard/Ruby On Rails Performance.json +2041 -0
  41. data/sample-dashboard/docker-compose.yml +34 -0
  42. data/sample-dashboard/provisioning/grafana-dashboards.yml +12 -0
  43. data/sample-dashboard/provisioning/grafana-datasource.yml +10 -0
  44. data/sample-dashboard/provisioning/performance-action.json +1576 -0
  45. data/sample-dashboard/provisioning/performance-request.json +1053 -0
  46. data/sample-dashboard/provisioning/performance.json +2041 -0
  47. data/spec/requests/action_controller_metrics_spec.rb +83 -0
  48. data/spec/requests/action_view_collection_metrics_spec.rb +66 -0
  49. data/spec/requests/action_view_partial_metrics_spec.rb +62 -0
  50. data/spec/requests/action_view_template_metrics_spec.rb +62 -0
  51. data/spec/requests/active_job_enqueue_metrics_spec.rb +65 -0
  52. data/spec/requests/active_job_perform_metrics_spec.rb +68 -0
  53. data/spec/requests/active_job_perform_start_metrics_spec.rb +68 -0
  54. data/spec/requests/active_record_instantiation_metrics_spec.rb +65 -0
  55. data/spec/requests/active_record_sql_metrics_spec.rb +103 -0
  56. data/spec/requests/block_inistrumentation_spec.rb +64 -0
  57. data/spec/requests/context_spec.rb +27 -0
  58. data/spec/requests/logger_spec.rb +10 -0
  59. data/spec/spec_helper.rb +12 -4
  60. data/spec/support/broken_client.rb +11 -0
  61. data/spec/support/rails5/app.rb +44 -5
  62. data/spec/support/rails6/app.rb +70 -0
  63. data/spec/support/views/metrics/_item.html.erb +1 -0
  64. data/spec/support/views/metrics/index.html.erb +5 -0
  65. data/spec/support/views/metrics/show.html.erb +4 -0
  66. data/spec/unit/block_instrumentation_spec.rb +18 -0
  67. data/spec/unit/configuration_spec.rb +64 -65
  68. data/spec/unit/sql/normalizer_spec.rb +15 -0
  69. data/spec/unit/sql/query_spec.rb +29 -0
  70. metadata +167 -44
  71. data/gemfiles/Gemfile.rails-4.2.x +0 -7
  72. data/lib/influxdb/rails/air_traffic_controller.rb +0 -41
  73. data/lib/influxdb/rails/backtrace.rb +0 -44
  74. data/lib/influxdb/rails/exception_presenter.rb +0 -94
  75. data/lib/influxdb/rails/instrumentation.rb +0 -34
  76. data/lib/influxdb/rails/logger.rb +0 -16
  77. data/lib/influxdb/rails/middleware/hijack_render_exception.rb +0 -16
  78. data/lib/influxdb/rails/middleware/hijack_rescue_action_everywhere.rb +0 -31
  79. data/lib/influxdb/rails/rack.rb +0 -24
  80. data/spec/controllers/widgets_controller_spec.rb +0 -15
  81. data/spec/integration/exceptions_spec.rb +0 -37
  82. data/spec/integration/integration_helper.rb +0 -1
  83. data/spec/integration/metrics_spec.rb +0 -21
  84. data/spec/support/rails4/app.rb +0 -30
  85. data/spec/unit/backtrace_spec.rb +0 -85
  86. data/spec/unit/exception_presenter_spec.rb +0 -23
  87. data/spec/unit/influxdb_rails_spec.rb +0 -164
@@ -0,0 +1 @@
1
+ <div>item</div
@@ -0,0 +1,5 @@
1
+ <h1>Index page</h1>
2
+ <div>
3
+ <%= render partial: 'item' %>
4
+ <%= render partial: 'item', collection: [1,2,3] %>
5
+ </div>
@@ -0,0 +1,4 @@
1
+ <h1>Show</h1>
2
+ <div>
3
+ <%= @metric.name %>
4
+ </div>
@@ -0,0 +1,18 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe InfluxDB::Rails do
4
+ describe ".instrument" do
5
+ it "supports calling wihout a block" do
6
+ InfluxDB::Rails.instrument "name", values: { value: 1 }
7
+
8
+ expect_metric(
9
+ values: a_hash_including(value: 1),
10
+ tags: a_hash_including(
11
+ hook: "block_instrumentation",
12
+ server: Socket.gethostname,
13
+ location: :raw
14
+ )
15
+ )
16
+ end
17
+ end
18
+ end
@@ -5,90 +5,72 @@ RSpec.describe InfluxDB::Rails::Configuration do
5
5
  @configuration = InfluxDB::Rails::Configuration.new
6
6
  end
7
7
 
8
- describe "#ignore_user_agent?" do
9
- it "should be true for user agents that have been set as ignorable" do
10
- @configuration.ignored_user_agents = %w[Googlebot]
11
- expect(@configuration.ignore_user_agent?("Googlebot/2.1")).to be_truthy
12
- end
13
-
14
- it "should be false for user agents that have not been set as ignorable" do
15
- @configuration.ignored_user_agents = %w[Googlebot]
16
- expect(@configuration.ignore_user_agent?("Mozilla/5.0")).to be_falsey
17
- end
8
+ describe "client configuration" do
9
+ subject { InfluxDB::Rails.configuration.client }
18
10
 
19
- it "should be false if the ignored user agents list is empty" do
20
- @configuration.ignored_user_agents = []
21
- expect(@configuration.ignore_user_agent?("Googlebot/2.1")).to be_falsey
22
- end
23
-
24
- it "should be false if the ignored user agents list is inadvertently set to nil" do
25
- @configuration.ignored_user_agents = nil
26
- expect(@configuration.ignore_user_agent?("Googlebot/2.1")).to be_falsey
27
- end
28
- end
29
-
30
- describe "#retry" do
31
- it "defaults to nil" do
32
- expect(InfluxDB::Rails.configuration.retry).to be_nil
33
- end
11
+ describe "#retry" do
12
+ it "defaults to nil" do
13
+ expect(subject.retry).to be_nil
14
+ end
34
15
 
35
- it "can be updated" do
36
- InfluxDB::Rails.configure do |config|
37
- config.retry = 5
16
+ it "can be updated" do
17
+ InfluxDB::Rails.configure do |config|
18
+ config.client.retry = 5
19
+ end
20
+ expect(subject.retry).to eql(5)
38
21
  end
39
- expect(InfluxDB::Rails.configuration.retry).to eql(5)
40
22
  end
41
- end
42
23
 
43
- describe "#open_timeout" do
44
- it "defaults to 5" do
45
- expect(InfluxDB::Rails.configuration.open_timeout).to eql(5)
46
- end
24
+ describe "#open_timeout" do
25
+ it "defaults to 5" do
26
+ expect(subject.open_timeout).to eql(5)
27
+ end
47
28
 
48
- it "can be updated" do
49
- InfluxDB::Rails.configure do |config|
50
- config.open_timeout = 5
29
+ it "can be updated" do
30
+ InfluxDB::Rails.configure do |config|
31
+ config.client.open_timeout = 5
32
+ end
33
+ expect(subject.open_timeout).to eql(5)
51
34
  end
52
- expect(InfluxDB::Rails.configuration.open_timeout).to eql(5)
53
35
  end
54
- end
55
36
 
56
- describe "#read_timeout" do
57
- it "defaults to 300" do
58
- expect(InfluxDB::Rails.configuration.read_timeout).to eql(300)
59
- end
37
+ describe "#read_timeout" do
38
+ it "defaults to 300" do
39
+ expect(subject.read_timeout).to eql(300)
40
+ end
60
41
 
61
- it "can be updated" do
62
- InfluxDB::Rails.configure do |config|
63
- config.read_timeout = 5
42
+ it "can be updated" do
43
+ InfluxDB::Rails.configure do |config|
44
+ config.client.read_timeout = 5
45
+ end
46
+ expect(subject.read_timeout).to eql(5)
64
47
  end
65
- expect(InfluxDB::Rails.configuration.read_timeout).to eql(5)
66
48
  end
67
- end
68
49
 
69
- describe "#max_delay" do
70
- it "defaults to 30" do
71
- expect(InfluxDB::Rails.configuration.max_delay).to eql(30)
72
- end
50
+ describe "#max_delay" do
51
+ it "defaults to 30" do
52
+ expect(subject.max_delay).to eql(30)
53
+ end
73
54
 
74
- it "can be updated" do
75
- InfluxDB::Rails.configure do |config|
76
- config.max_delay = 5
55
+ it "can be updated" do
56
+ InfluxDB::Rails.configure do |config|
57
+ config.client.max_delay = 5
58
+ end
59
+ expect(subject.max_delay).to eql(5)
77
60
  end
78
- expect(InfluxDB::Rails.configuration.max_delay).to eql(5)
79
61
  end
80
- end
81
62
 
82
- describe "#time_precision" do
83
- it "defaults to seconds" do
84
- expect(InfluxDB::Rails.configuration.time_precision).to eql("s")
85
- end
63
+ describe "#time_precision" do
64
+ it "defaults to seconds" do
65
+ expect(subject.time_precision).to eql("s")
66
+ end
86
67
 
87
- it "can be updated" do
88
- InfluxDB::Rails.configure do |config|
89
- config.time_precision = "ms"
68
+ it "can be updated" do
69
+ InfluxDB::Rails.configure do |config|
70
+ config.client.time_precision = "ms"
71
+ end
72
+ expect(subject.time_precision).to eql("ms")
90
73
  end
91
- expect(InfluxDB::Rails.configuration.time_precision).to eql("ms")
92
74
  end
93
75
  end
94
76
 
@@ -105,4 +87,21 @@ RSpec.describe InfluxDB::Rails::Configuration do
105
87
  expect(InfluxDB::Rails.configuration.rails_app_name).to eq("my-app")
106
88
  end
107
89
  end
90
+
91
+ describe "#tags_middleware" do
92
+ let(:middleware) { InfluxDB::Rails.configuration.tags_middleware }
93
+ let(:tags_example) { { a: 1, b: 2 } }
94
+
95
+ it "by default returns unmodified tags" do
96
+ expect(middleware.call(tags_example)).to eq tags_example
97
+ end
98
+
99
+ it "can be updated" do
100
+ InfluxDB::Rails.configure do |config|
101
+ config.tags_middleware = ->(tags) { tags.merge(c: 3) }
102
+ end
103
+
104
+ expect(middleware.call(tags_example)).to eq(tags_example.merge(c: 3))
105
+ end
106
+ end
108
107
  end
@@ -0,0 +1,15 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe InfluxDB::Rails::Sql::Normalizer do
4
+ describe "#perform" do
5
+ it { expect(described_class.new("SELECT * FROM posts WHERE id = 1").perform).to eq("SELECT * FROM posts WHERE id = xxx") }
6
+ it { expect(described_class.new("SELECT * FROM posts WHERE id = 1".freeze).perform).to eq("SELECT * FROM posts WHERE id = xxx") }
7
+ it { expect(described_class.new("SELECT * FROM posts LIMIT 10").perform).to eq("SELECT * FROM posts LIMIT xxx") }
8
+ it { expect(described_class.new("SELECT * FROM posts OFFSET 10").perform).to eq("SELECT * FROM posts OFFSET xxx") }
9
+ it { expect(described_class.new("SELECT * FROM posts WHERE name LIKE '%foobar%'").perform).to eq("SELECT * FROM posts WHERE name LIKE xxx") }
10
+ it { expect(described_class.new("SELECT * FROM posts WHERE id IN (1,2,3)").perform).to eq("SELECT * FROM posts WHERE id IN (xxx)") }
11
+ it { expect(described_class.new("SELECT * FROM products WHERE price BETWEEN 10 AND 20").perform).to eq("SELECT * FROM products WHERE price BETWEEN xxx AND xxx") }
12
+ it { expect(described_class.new("INSERT INTO products (title, price) VALUES ('Computer', 100)").perform).to eq("INSERT INTO products (title, price) VALUES (xxx)") }
13
+ it { expect(described_class.new(" SELECT * FROM POSTS ").perform).to eq("SELECT * FROM POSTS") }
14
+ end
15
+ end
@@ -0,0 +1,29 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe InfluxDB::Rails::Sql::Query do
4
+ let(:payload) do
5
+ {
6
+ sql: "select * from users where user_id = 42;",
7
+ name: "User Load",
8
+ }
9
+ end
10
+ subject { described_class.new(payload) }
11
+
12
+ describe "#class_name" do
13
+ it { expect(subject.class_name).to eq("User") }
14
+ end
15
+
16
+ describe "#operation" do
17
+ it { expect(subject.operation).to eq("SELECT") }
18
+ end
19
+
20
+ describe "#track?" do
21
+ it { expect(described_class.new(sql: "INSERT").track?).to be true }
22
+ it { expect(described_class.new(sql: "UPDATE").track?).to be true }
23
+ it { expect(described_class.new(sql: "SELECT").track?).to be true }
24
+ it { expect(described_class.new(sql: "DELETE").track?).to be true }
25
+ it { expect(described_class.new(sql: "SCHEMA").track?).to be false }
26
+ it { expect(described_class.new(sql: "BEGIN").track?).to be false }
27
+ it { expect(described_class.new(sql: "SELECT", name: "SCHEMA").track?).to be false }
28
+ end
29
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxdb-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta1
4
+ version: 1.0.1.beta1
5
5
  platform: ruby
6
6
  authors:
7
- - Dominik Menke
8
- - Todd Persen
7
+ - Christian Bruckmayer
8
+ - Henne Vogelsang
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-22 00:00:00.000000000 Z
12
+ date: 2020-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: influxdb
@@ -17,28 +17,62 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.5.0
20
+ version: '0.6'
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.6.4
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - "~>"
26
29
  - !ruby/object:Gem::Version
27
- version: 0.5.0
30
+ version: '0.6'
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.4
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: railties
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
- - - ">"
38
+ - - ">="
33
39
  - !ruby/object:Gem::Version
34
- version: '3'
40
+ version: '5.0'
35
41
  type: :runtime
36
42
  prerelease: false
37
43
  version_requirements: !ruby/object:Gem::Requirement
38
44
  requirements:
39
- - - ">"
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: activejob
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: activerecord
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
40
74
  - !ruby/object:Gem::Version
41
- version: '3'
75
+ version: '0'
42
76
  - !ruby/object:Gem::Dependency
43
77
  name: bundler
44
78
  requirement: !ruby/object:Gem::Requirement
@@ -67,6 +101,34 @@ dependencies:
67
101
  - - ">="
68
102
  - !ruby/object:Gem::Version
69
103
  version: '0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: launchy
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: pry
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
70
132
  - !ruby/object:Gem::Dependency
71
133
  name: rake
72
134
  requirement: !ruby/object:Gem::Requirement
@@ -129,14 +191,28 @@ dependencies:
129
191
  requirements:
130
192
  - - "~>"
131
193
  - !ruby/object:Gem::Version
132
- version: 0.60.0
194
+ version: 0.61.1
133
195
  type: :development
134
196
  prerelease: false
135
197
  version_requirements: !ruby/object:Gem::Requirement
136
198
  requirements:
137
199
  - - "~>"
138
200
  - !ruby/object:Gem::Version
139
- version: 0.60.0
201
+ version: 0.61.1
202
+ - !ruby/object:Gem::Dependency
203
+ name: sqlite3
204
+ requirement: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
140
216
  - !ruby/object:Gem::Dependency
141
217
  name: tzinfo
142
218
  requirement: !ruby/object:Gem::Requirement
@@ -151,15 +227,15 @@ dependencies:
151
227
  - - ">="
152
228
  - !ruby/object:Gem::Version
153
229
  version: '0'
154
- description: This gem automatically instruments your Ruby on Rails 4.2/5.x applications
155
- using InfluxDB for storage.
230
+ description: This gem instruments your Ruby on Rails application using InfluxDB.
156
231
  email:
157
- - dominik.menke@gmail.com
158
- - todd@influxdb.com
232
+ - christian@bruckmayer.net
233
+ - hvogel@hennevogel.de
159
234
  executables: []
160
235
  extensions: []
161
236
  extra_rdoc_files: []
162
237
  files:
238
+ - ".github/dependabot.yml"
163
239
  - ".gitignore"
164
240
  - ".rspec"
165
241
  - ".rubocop.yml"
@@ -170,40 +246,75 @@ files:
170
246
  - README.md
171
247
  - Rakefile
172
248
  - config.ru
173
- - gemfiles/Gemfile.rails-4.2.x
174
249
  - gemfiles/Gemfile.rails-5.0.x
175
250
  - gemfiles/Gemfile.rails-5.1.x
176
251
  - gemfiles/Gemfile.rails-5.2.x
252
+ - gemfiles/Gemfile.rails-6.0.x
177
253
  - influxdb-rails.gemspec
178
254
  - lib/influxdb-rails.rb
179
- - lib/influxdb/rails/air_traffic_controller.rb
180
- - lib/influxdb/rails/backtrace.rb
181
255
  - lib/influxdb/rails/configuration.rb
182
- - lib/influxdb/rails/exception_presenter.rb
183
- - lib/influxdb/rails/instrumentation.rb
184
- - lib/influxdb/rails/logger.rb
185
- - lib/influxdb/rails/middleware/hijack_render_exception.rb
186
- - lib/influxdb/rails/middleware/hijack_rescue_action_everywhere.rb
187
- - lib/influxdb/rails/rack.rb
256
+ - lib/influxdb/rails/context.rb
257
+ - lib/influxdb/rails/helpers/rspec_matchers.rb
258
+ - lib/influxdb/rails/metric.rb
259
+ - lib/influxdb/rails/middleware/active_job_subscriber.rb
260
+ - lib/influxdb/rails/middleware/active_record_subscriber.rb
261
+ - lib/influxdb/rails/middleware/block_instrumentation_subscriber.rb
262
+ - lib/influxdb/rails/middleware/render_subscriber.rb
263
+ - lib/influxdb/rails/middleware/request_subscriber.rb
264
+ - lib/influxdb/rails/middleware/sql_subscriber.rb
265
+ - lib/influxdb/rails/middleware/subscriber.rb
188
266
  - lib/influxdb/rails/railtie.rb
267
+ - lib/influxdb/rails/sql/normalizer.rb
268
+ - lib/influxdb/rails/sql/query.rb
269
+ - lib/influxdb/rails/tags.rb
270
+ - lib/influxdb/rails/test_client.rb
271
+ - lib/influxdb/rails/values.rb
189
272
  - lib/influxdb/rails/version.rb
190
273
  - lib/rails/generators/influxdb/influxdb_generator.rb
191
274
  - lib/rails/generators/influxdb/templates/initializer.rb
192
- - spec/controllers/widgets_controller_spec.rb
193
- - spec/integration/exceptions_spec.rb
194
- - spec/integration/integration_helper.rb
195
- - spec/integration/metrics_spec.rb
275
+ - sample-dashboard/Dockerfile
276
+ - sample-dashboard/README.md
277
+ - sample-dashboard/Rakefile
278
+ - sample-dashboard/Ruby On Rails Performance (per Action).json
279
+ - sample-dashboard/Ruby On Rails Performance (per Request).json
280
+ - sample-dashboard/Ruby On Rails Performance.json
281
+ - sample-dashboard/docker-compose.yml
282
+ - sample-dashboard/provisioning/grafana-dashboards.yml
283
+ - sample-dashboard/provisioning/grafana-datasource.yml
284
+ - sample-dashboard/provisioning/performance-action.json
285
+ - sample-dashboard/provisioning/performance-request.json
286
+ - sample-dashboard/provisioning/performance.json
287
+ - spec/requests/action_controller_metrics_spec.rb
288
+ - spec/requests/action_view_collection_metrics_spec.rb
289
+ - spec/requests/action_view_partial_metrics_spec.rb
290
+ - spec/requests/action_view_template_metrics_spec.rb
291
+ - spec/requests/active_job_enqueue_metrics_spec.rb
292
+ - spec/requests/active_job_perform_metrics_spec.rb
293
+ - spec/requests/active_job_perform_start_metrics_spec.rb
294
+ - spec/requests/active_record_instantiation_metrics_spec.rb
295
+ - spec/requests/active_record_sql_metrics_spec.rb
296
+ - spec/requests/block_inistrumentation_spec.rb
297
+ - spec/requests/context_spec.rb
298
+ - spec/requests/logger_spec.rb
196
299
  - spec/spec_helper.rb
197
- - spec/support/rails4/app.rb
300
+ - spec/support/broken_client.rb
198
301
  - spec/support/rails5/app.rb
199
- - spec/unit/backtrace_spec.rb
302
+ - spec/support/rails6/app.rb
303
+ - spec/support/views/metrics/_item.html.erb
304
+ - spec/support/views/metrics/index.html.erb
305
+ - spec/support/views/metrics/show.html.erb
306
+ - spec/unit/block_instrumentation_spec.rb
200
307
  - spec/unit/configuration_spec.rb
201
- - spec/unit/exception_presenter_spec.rb
202
- - spec/unit/influxdb_rails_spec.rb
308
+ - spec/unit/sql/normalizer_spec.rb
309
+ - spec/unit/sql/query_spec.rb
203
310
  homepage: https://influxdata.com
204
311
  licenses:
205
312
  - MIT
206
- metadata: {}
313
+ metadata:
314
+ bug_tracker_uri: https://github.com/influxdata/influxdb-rails/issues
315
+ changelog_uri: https://github.com/influxdata/influxdb-rails/blob/master/CHANGELOG.md
316
+ documentation_uri: https://github.com/influxdata/influxdb-rails/blob/master/README.md
317
+ source_code_uri: https://github.com/influxdata/influxdb-rails
207
318
  post_install_message:
208
319
  rdoc_options: []
209
320
  require_paths:
@@ -212,7 +323,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
323
  requirements:
213
324
  - - ">="
214
325
  - !ruby/object:Gem::Version
215
- version: 2.3.0
326
+ version: 2.4.0
216
327
  required_rubygems_version: !ruby/object:Gem::Requirement
217
328
  requirements:
218
329
  - - ">"
@@ -220,19 +331,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
331
  version: 1.3.1
221
332
  requirements: []
222
333
  rubyforge_project:
223
- rubygems_version: 2.7.6
334
+ rubygems_version: 2.7.6.2
224
335
  signing_key:
225
336
  specification_version: 4
226
337
  summary: InfluxDB bindings for Ruby on Rails.
227
338
  test_files:
228
- - spec/controllers/widgets_controller_spec.rb
229
- - spec/integration/exceptions_spec.rb
230
- - spec/integration/integration_helper.rb
231
- - spec/integration/metrics_spec.rb
339
+ - spec/requests/action_controller_metrics_spec.rb
340
+ - spec/requests/action_view_collection_metrics_spec.rb
341
+ - spec/requests/action_view_partial_metrics_spec.rb
342
+ - spec/requests/action_view_template_metrics_spec.rb
343
+ - spec/requests/active_job_enqueue_metrics_spec.rb
344
+ - spec/requests/active_job_perform_metrics_spec.rb
345
+ - spec/requests/active_job_perform_start_metrics_spec.rb
346
+ - spec/requests/active_record_instantiation_metrics_spec.rb
347
+ - spec/requests/active_record_sql_metrics_spec.rb
348
+ - spec/requests/block_inistrumentation_spec.rb
349
+ - spec/requests/context_spec.rb
350
+ - spec/requests/logger_spec.rb
232
351
  - spec/spec_helper.rb
233
- - spec/support/rails4/app.rb
352
+ - spec/support/broken_client.rb
234
353
  - spec/support/rails5/app.rb
235
- - spec/unit/backtrace_spec.rb
354
+ - spec/support/rails6/app.rb
355
+ - spec/support/views/metrics/_item.html.erb
356
+ - spec/support/views/metrics/index.html.erb
357
+ - spec/support/views/metrics/show.html.erb
358
+ - spec/unit/block_instrumentation_spec.rb
236
359
  - spec/unit/configuration_spec.rb
237
- - spec/unit/exception_presenter_spec.rb
238
- - spec/unit/influxdb_rails_spec.rb
360
+ - spec/unit/sql/normalizer_spec.rb
361
+ - spec/unit/sql/query_spec.rb