influxdb-rails 1.0.0.beta2 → 1.0.1.beta2
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/.gitignore +1 -0
- data/.rubocop.yml +6 -1
- data/.travis.yml +5 -12
- data/CHANGELOG.md +47 -12
- data/README.md +299 -140
- data/gemfiles/Gemfile.rails-6.0.x +10 -0
- data/influxdb-rails.gemspec +18 -9
- data/lib/influxdb-rails.rb +33 -77
- data/lib/influxdb/rails/configuration.rb +99 -194
- data/lib/influxdb/rails/context.rb +26 -0
- 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 +18 -6
- data/lib/influxdb/rails/middleware/request_subscriber.rb +24 -31
- data/lib/influxdb/rails/middleware/sql_subscriber.rb +18 -13
- data/lib/influxdb/rails/middleware/subscriber.rb +45 -15
- data/lib/influxdb/rails/railtie.rb +31 -35
- data/lib/influxdb/rails/sql/query.rb +5 -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/influxdb_generator.rb +1 -1
- data/lib/rails/generators/influxdb/templates/initializer.rb +39 -9
- data/sample-dashboard/Dockerfile +24 -0
- data/sample-dashboard/README.md +74 -0
- data/sample-dashboard/Rakefile +9 -0
- data/sample-dashboard/Ruby On Rails Performance (per Action).json +1576 -0
- data/sample-dashboard/Ruby On Rails Performance (per Request).json +1053 -0
- data/sample-dashboard/Ruby On Rails Performance.json +2041 -0
- data/sample-dashboard/docker-compose.yml +34 -0
- data/sample-dashboard/provisioning/grafana-dashboards.yml +12 -0
- data/sample-dashboard/provisioning/grafana-datasource.yml +10 -0
- data/sample-dashboard/provisioning/performance-action.json +1576 -0
- data/sample-dashboard/provisioning/performance-request.json +1053 -0
- data/sample-dashboard/provisioning/performance.json +2041 -0
- data/spec/requests/action_controller_metrics_spec.rb +83 -0
- data/spec/requests/action_mailer_deliver_metrics_spec.rb +49 -0
- data/spec/requests/action_view_collection_metrics_spec.rb +66 -0
- data/spec/requests/action_view_partial_metrics_spec.rb +62 -0
- data/spec/requests/action_view_template_metrics_spec.rb +62 -0
- data/spec/requests/active_job_enqueue_metrics_spec.rb +65 -0
- data/spec/requests/active_job_perform_metrics_spec.rb +68 -0
- data/spec/requests/active_job_perform_start_metrics_spec.rb +68 -0
- data/spec/requests/active_record_instantiation_metrics_spec.rb +65 -0
- data/spec/requests/active_record_sql_metrics_spec.rb +103 -0
- data/spec/requests/block_inistrumentation_spec.rb +64 -0
- data/spec/requests/context_spec.rb +27 -0
- data/spec/requests/logger_spec.rb +10 -0
- data/spec/spec_helper.rb +13 -4
- data/spec/support/broken_client.rb +11 -0
- data/spec/support/rails5/app.rb +49 -9
- data/spec/support/rails6/app.rb +84 -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/configuration_spec.rb +47 -65
- data/spec/unit/sql/query_spec.rb +1 -0
- metadata +142 -57
- 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/air_traffic_controller.rb +0 -41
- data/lib/influxdb/rails/backtrace.rb +0 -44
- data/lib/influxdb/rails/exception_presenter.rb +0 -94
- data/lib/influxdb/rails/instrumentation.rb +0 -34
- data/lib/influxdb/rails/logger.rb +0 -16
- data/lib/influxdb/rails/middleware/hijack_render_exception.rb +0 -16
- data/lib/influxdb/rails/middleware/hijack_rescue_action_everywhere.rb +0 -31
- data/lib/influxdb/rails/middleware/simple_subscriber.rb +0 -46
- data/lib/influxdb/rails/rack.rb +0 -24
- data/spec/controllers/widgets_controller_spec.rb +0 -15
- data/spec/integration/exceptions_spec.rb +0 -37
- data/spec/integration/integration_helper.rb +0 -1
- data/spec/integration/metrics_spec.rb +0 -28
- data/spec/support/rails4/app.rb +0 -44
- data/spec/unit/backtrace_spec.rb +0 -85
- data/spec/unit/exception_presenter_spec.rb +0 -23
- data/spec/unit/influxdb_rails_spec.rb +0 -78
- data/spec/unit/middleware/render_subscriber_spec.rb +0 -90
- data/spec/unit/middleware/request_subscriber_spec.rb +0 -106
- data/spec/unit/middleware/sql_subscriber_spec.rb +0 -79
@@ -0,0 +1,84 @@
|
|
1
|
+
require "action_controller/railtie"
|
2
|
+
require "active_record/railtie"
|
3
|
+
require "active_job"
|
4
|
+
require "action_mailer"
|
5
|
+
|
6
|
+
app = Class.new(Rails::Application)
|
7
|
+
app.config.secret_key_base = "1234567890abcdef1234567890abcdef"
|
8
|
+
app.config.secret_token = "1234567890abcdef1234567890abcdef"
|
9
|
+
app.config.session_store :cookie_store, key: "_myapp_session"
|
10
|
+
app.config.active_support.deprecation = :log
|
11
|
+
app.config.eager_load = false
|
12
|
+
app.config.root = __dir__
|
13
|
+
Rails.backtrace_cleaner.remove_silencers!
|
14
|
+
ActiveJob::Base.logger = Rails.logger
|
15
|
+
ActionMailer::Base.delivery_method = :test
|
16
|
+
app.initialize!
|
17
|
+
|
18
|
+
app.routes.draw do
|
19
|
+
resources :metrics, only: %i[index show]
|
20
|
+
resources :exceptions, only: :index
|
21
|
+
end
|
22
|
+
|
23
|
+
InfluxDB::Rails.configure do |config|
|
24
|
+
end
|
25
|
+
|
26
|
+
ENV["DATABASE_URL"] = "sqlite3::memory:"
|
27
|
+
ActiveRecord::Schema.define do
|
28
|
+
create_table :metrics, force: true do |t|
|
29
|
+
t.string :name
|
30
|
+
|
31
|
+
t.timestamps
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class MetricJob < ActiveJob::Base
|
36
|
+
queue_as :default
|
37
|
+
|
38
|
+
def perform
|
39
|
+
# Do something later
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class MetricMailer < ActionMailer::Base
|
44
|
+
default from: "from@example.com"
|
45
|
+
layout "mailer"
|
46
|
+
|
47
|
+
def welcome_mail
|
48
|
+
mail(to: "eisendieter@werder.de", subject: "Welcome to metrics!") do |format|
|
49
|
+
format.text { render plain: "Hello Dieter!" }
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
class Metric < ActiveRecord::Base; end
|
55
|
+
class ApplicationController < ActionController::Base; end
|
56
|
+
class MetricsController < ApplicationController
|
57
|
+
prepend_view_path File.join(__dir__, "..", "views")
|
58
|
+
|
59
|
+
before_action do
|
60
|
+
InfluxDB::Rails.current.values = { additional_value: :value }
|
61
|
+
InfluxDB::Rails.current.tags = { additional_tag: :value }
|
62
|
+
end
|
63
|
+
|
64
|
+
def index
|
65
|
+
InfluxDB::Rails.instrument "name", tags: { block_tag: :block_tag }, values: { block_value: :block_value } do
|
66
|
+
1 + 1
|
67
|
+
end
|
68
|
+
MetricJob.perform_later
|
69
|
+
MetricMailer.with(user: "eisendieter").welcome_mail.deliver_now
|
70
|
+
Metric.create!(name: "name")
|
71
|
+
end
|
72
|
+
|
73
|
+
def show
|
74
|
+
@metric = Metric.find_by(name: "name")
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
class ExceptionsController < ApplicationController
|
79
|
+
def index
|
80
|
+
1 / 0
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
Object.const_set(:ApplicationHelper, Module.new)
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
File without changes
|
File without changes
|
@@ -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 "
|
9
|
-
|
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
|
18
|
-
|
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
|
8
|
+
describe "client configuration" do
|
9
|
+
subject { InfluxDB::Rails.configuration.client }
|
23
10
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
24
|
+
describe "#open_timeout" do
|
25
|
+
it "defaults to 5" do
|
26
|
+
expect(subject.open_timeout).to eql(5)
|
27
|
+
end
|
47
28
|
|
48
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
37
|
+
describe "#read_timeout" do
|
38
|
+
it "defaults to 300" do
|
39
|
+
expect(subject.read_timeout).to eql(300)
|
40
|
+
end
|
60
41
|
|
61
|
-
|
62
|
-
|
63
|
-
|
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
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
50
|
+
describe "#max_delay" do
|
51
|
+
it "defaults to 30" do
|
52
|
+
expect(subject.max_delay).to eql(30)
|
53
|
+
end
|
73
54
|
|
74
|
-
|
75
|
-
|
76
|
-
|
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
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
63
|
+
describe "#time_precision" do
|
64
|
+
it "defaults to seconds" do
|
65
|
+
expect(subject.time_precision).to eql("s")
|
66
|
+
end
|
86
67
|
|
87
|
-
|
88
|
-
|
89
|
-
|
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
|
|
data/spec/unit/sql/query_spec.rb
CHANGED
@@ -24,5 +24,6 @@ RSpec.describe InfluxDB::Rails::Sql::Query do
|
|
24
24
|
it { expect(described_class.new(sql: "DELETE").track?).to be true }
|
25
25
|
it { expect(described_class.new(sql: "SCHEMA").track?).to be false }
|
26
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 }
|
27
28
|
end
|
28
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.
|
4
|
+
version: 1.0.1.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
autorequire:
|
7
|
+
- Christian Bruckmayer
|
8
|
+
- Henne Vogelsang
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-09-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: influxdb
|
@@ -37,14 +37,42 @@ dependencies:
|
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '5.0'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '5.0'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: actionmailer
|
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: activejob
|
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
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
48
76
|
- !ruby/object:Gem::Dependency
|
49
77
|
name: activerecord
|
50
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,6 +115,34 @@ dependencies:
|
|
87
115
|
- - ">="
|
88
116
|
- !ruby/object:Gem::Version
|
89
117
|
version: '0'
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: launchy
|
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'
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: pry
|
134
|
+
requirement: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
type: :development
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
90
146
|
- !ruby/object:Gem::Dependency
|
91
147
|
name: rake
|
92
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,14 +205,14 @@ dependencies:
|
|
149
205
|
requirements:
|
150
206
|
- - "~>"
|
151
207
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
208
|
+
version: 0.61.1
|
153
209
|
type: :development
|
154
210
|
prerelease: false
|
155
211
|
version_requirements: !ruby/object:Gem::Requirement
|
156
212
|
requirements:
|
157
213
|
- - "~>"
|
158
214
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
215
|
+
version: 0.61.1
|
160
216
|
- !ruby/object:Gem::Dependency
|
161
217
|
name: sqlite3
|
162
218
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,15 +241,15 @@ dependencies:
|
|
185
241
|
- - ">="
|
186
242
|
- !ruby/object:Gem::Version
|
187
243
|
version: '0'
|
188
|
-
description: This gem
|
189
|
-
using InfluxDB for storage.
|
244
|
+
description: This gem instruments your Ruby on Rails application using InfluxDB.
|
190
245
|
email:
|
191
|
-
-
|
192
|
-
-
|
246
|
+
- christian@bruckmayer.net
|
247
|
+
- hvogel@hennevogel.de
|
193
248
|
executables: []
|
194
249
|
extensions: []
|
195
250
|
extra_rdoc_files: []
|
196
251
|
files:
|
252
|
+
- ".github/dependabot.yml"
|
197
253
|
- ".gitignore"
|
198
254
|
- ".rspec"
|
199
255
|
- ".rubocop.yml"
|
@@ -204,55 +260,77 @@ files:
|
|
204
260
|
- README.md
|
205
261
|
- Rakefile
|
206
262
|
- config.ru
|
207
|
-
- gemfiles/Gemfile.rails-4.2.x
|
208
|
-
- gemfiles/Gemfile.rails-5.0.x
|
209
|
-
- gemfiles/Gemfile.rails-5.1.x
|
210
263
|
- gemfiles/Gemfile.rails-5.2.x
|
264
|
+
- gemfiles/Gemfile.rails-6.0.x
|
211
265
|
- influxdb-rails.gemspec
|
212
266
|
- lib/influxdb-rails.rb
|
213
|
-
- lib/influxdb/rails/air_traffic_controller.rb
|
214
|
-
- lib/influxdb/rails/backtrace.rb
|
215
267
|
- lib/influxdb/rails/configuration.rb
|
216
|
-
- lib/influxdb/rails/
|
217
|
-
- lib/influxdb/rails/
|
218
|
-
- lib/influxdb/rails/
|
219
|
-
- lib/influxdb/rails/middleware/
|
220
|
-
- lib/influxdb/rails/middleware/
|
268
|
+
- lib/influxdb/rails/context.rb
|
269
|
+
- lib/influxdb/rails/helpers/rspec_matchers.rb
|
270
|
+
- lib/influxdb/rails/metric.rb
|
271
|
+
- lib/influxdb/rails/middleware/action_mailer_subscriber.rb
|
272
|
+
- lib/influxdb/rails/middleware/active_job_subscriber.rb
|
273
|
+
- lib/influxdb/rails/middleware/active_record_subscriber.rb
|
274
|
+
- lib/influxdb/rails/middleware/block_instrumentation_subscriber.rb
|
221
275
|
- lib/influxdb/rails/middleware/render_subscriber.rb
|
222
276
|
- lib/influxdb/rails/middleware/request_subscriber.rb
|
223
|
-
- lib/influxdb/rails/middleware/simple_subscriber.rb
|
224
277
|
- lib/influxdb/rails/middleware/sql_subscriber.rb
|
225
278
|
- lib/influxdb/rails/middleware/subscriber.rb
|
226
|
-
- lib/influxdb/rails/rack.rb
|
227
279
|
- lib/influxdb/rails/railtie.rb
|
228
280
|
- lib/influxdb/rails/sql/normalizer.rb
|
229
281
|
- lib/influxdb/rails/sql/query.rb
|
282
|
+
- lib/influxdb/rails/tags.rb
|
283
|
+
- lib/influxdb/rails/test_client.rb
|
284
|
+
- lib/influxdb/rails/values.rb
|
230
285
|
- lib/influxdb/rails/version.rb
|
231
286
|
- lib/rails/generators/influxdb/influxdb_generator.rb
|
232
287
|
- lib/rails/generators/influxdb/templates/initializer.rb
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
288
|
+
- sample-dashboard/Dockerfile
|
289
|
+
- sample-dashboard/README.md
|
290
|
+
- sample-dashboard/Rakefile
|
291
|
+
- sample-dashboard/Ruby On Rails Performance (per Action).json
|
292
|
+
- sample-dashboard/Ruby On Rails Performance (per Request).json
|
293
|
+
- sample-dashboard/Ruby On Rails Performance.json
|
294
|
+
- sample-dashboard/docker-compose.yml
|
295
|
+
- sample-dashboard/provisioning/grafana-dashboards.yml
|
296
|
+
- sample-dashboard/provisioning/grafana-datasource.yml
|
297
|
+
- sample-dashboard/provisioning/performance-action.json
|
298
|
+
- sample-dashboard/provisioning/performance-request.json
|
299
|
+
- sample-dashboard/provisioning/performance.json
|
300
|
+
- spec/requests/action_controller_metrics_spec.rb
|
301
|
+
- spec/requests/action_mailer_deliver_metrics_spec.rb
|
302
|
+
- spec/requests/action_view_collection_metrics_spec.rb
|
303
|
+
- spec/requests/action_view_partial_metrics_spec.rb
|
304
|
+
- spec/requests/action_view_template_metrics_spec.rb
|
305
|
+
- spec/requests/active_job_enqueue_metrics_spec.rb
|
306
|
+
- spec/requests/active_job_perform_metrics_spec.rb
|
307
|
+
- spec/requests/active_job_perform_start_metrics_spec.rb
|
308
|
+
- spec/requests/active_record_instantiation_metrics_spec.rb
|
309
|
+
- spec/requests/active_record_sql_metrics_spec.rb
|
310
|
+
- spec/requests/block_inistrumentation_spec.rb
|
311
|
+
- spec/requests/context_spec.rb
|
312
|
+
- spec/requests/logger_spec.rb
|
237
313
|
- spec/spec_helper.rb
|
238
|
-
- spec/support/
|
314
|
+
- spec/support/broken_client.rb
|
239
315
|
- spec/support/rails5/app.rb
|
240
|
-
- spec/support/
|
241
|
-
- spec/support/views/
|
242
|
-
- spec/
|
316
|
+
- spec/support/rails6/app.rb
|
317
|
+
- spec/support/views/layouts/mailer.txt.erb
|
318
|
+
- spec/support/views/metrics/_item.html.erb
|
319
|
+
- spec/support/views/metrics/index.html.erb
|
320
|
+
- spec/support/views/metrics/show.html.erb
|
321
|
+
- spec/unit/block_instrumentation_spec.rb
|
243
322
|
- spec/unit/configuration_spec.rb
|
244
|
-
- spec/unit/exception_presenter_spec.rb
|
245
|
-
- spec/unit/influxdb_rails_spec.rb
|
246
|
-
- spec/unit/middleware/render_subscriber_spec.rb
|
247
|
-
- spec/unit/middleware/request_subscriber_spec.rb
|
248
|
-
- spec/unit/middleware/sql_subscriber_spec.rb
|
249
323
|
- spec/unit/sql/normalizer_spec.rb
|
250
324
|
- spec/unit/sql/query_spec.rb
|
251
325
|
homepage: https://influxdata.com
|
252
326
|
licenses:
|
253
327
|
- MIT
|
254
|
-
metadata:
|
255
|
-
|
328
|
+
metadata:
|
329
|
+
bug_tracker_uri: https://github.com/influxdata/influxdb-rails/issues
|
330
|
+
changelog_uri: https://github.com/influxdata/influxdb-rails/blob/master/CHANGELOG.md
|
331
|
+
documentation_uri: https://github.com/influxdata/influxdb-rails/blob/master/README.md
|
332
|
+
source_code_uri: https://github.com/influxdata/influxdb-rails
|
333
|
+
post_install_message:
|
256
334
|
rdoc_options: []
|
257
335
|
require_paths:
|
258
336
|
- lib
|
@@ -260,34 +338,41 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
260
338
|
requirements:
|
261
339
|
- - ">="
|
262
340
|
- !ruby/object:Gem::Version
|
263
|
-
version: 2.
|
341
|
+
version: 2.4.0
|
264
342
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
343
|
requirements:
|
266
344
|
- - ">"
|
267
345
|
- !ruby/object:Gem::Version
|
268
346
|
version: 1.3.1
|
269
347
|
requirements: []
|
270
|
-
rubyforge_project:
|
271
|
-
rubygems_version: 2.7.6
|
272
|
-
signing_key:
|
348
|
+
rubyforge_project:
|
349
|
+
rubygems_version: 2.7.6.2
|
350
|
+
signing_key:
|
273
351
|
specification_version: 4
|
274
352
|
summary: InfluxDB bindings for Ruby on Rails.
|
275
353
|
test_files:
|
276
|
-
- spec/
|
277
|
-
- spec/
|
278
|
-
- spec/
|
279
|
-
- spec/
|
354
|
+
- spec/requests/action_controller_metrics_spec.rb
|
355
|
+
- spec/requests/action_mailer_deliver_metrics_spec.rb
|
356
|
+
- spec/requests/action_view_collection_metrics_spec.rb
|
357
|
+
- spec/requests/action_view_partial_metrics_spec.rb
|
358
|
+
- spec/requests/action_view_template_metrics_spec.rb
|
359
|
+
- spec/requests/active_job_enqueue_metrics_spec.rb
|
360
|
+
- spec/requests/active_job_perform_metrics_spec.rb
|
361
|
+
- spec/requests/active_job_perform_start_metrics_spec.rb
|
362
|
+
- spec/requests/active_record_instantiation_metrics_spec.rb
|
363
|
+
- spec/requests/active_record_sql_metrics_spec.rb
|
364
|
+
- spec/requests/block_inistrumentation_spec.rb
|
365
|
+
- spec/requests/context_spec.rb
|
366
|
+
- spec/requests/logger_spec.rb
|
280
367
|
- spec/spec_helper.rb
|
281
|
-
- spec/support/
|
368
|
+
- spec/support/broken_client.rb
|
282
369
|
- spec/support/rails5/app.rb
|
283
|
-
- spec/support/
|
284
|
-
- spec/support/views/
|
285
|
-
- spec/
|
370
|
+
- spec/support/rails6/app.rb
|
371
|
+
- spec/support/views/layouts/mailer.txt.erb
|
372
|
+
- spec/support/views/metrics/_item.html.erb
|
373
|
+
- spec/support/views/metrics/index.html.erb
|
374
|
+
- spec/support/views/metrics/show.html.erb
|
375
|
+
- spec/unit/block_instrumentation_spec.rb
|
286
376
|
- spec/unit/configuration_spec.rb
|
287
|
-
- spec/unit/exception_presenter_spec.rb
|
288
|
-
- spec/unit/influxdb_rails_spec.rb
|
289
|
-
- spec/unit/middleware/render_subscriber_spec.rb
|
290
|
-
- spec/unit/middleware/request_subscriber_spec.rb
|
291
|
-
- spec/unit/middleware/sql_subscriber_spec.rb
|
292
377
|
- spec/unit/sql/normalizer_spec.rb
|
293
378
|
- spec/unit/sql/query_spec.rb
|