rmetrics 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +55 -0
- data/LICENSE.txt +21 -0
- data/README.md +73 -0
- data/Rakefile +20 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/rmetrics.rb +50 -0
- data/lib/rmetrics/events.rb +67 -0
- data/lib/rmetrics/influx.rb +48 -0
- data/lib/rmetrics/version.rb +3 -0
- data/rmetrics.gemspec +36 -0
- metadata +130 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8187a0d18303e564b37fc084176ed47ec676abb2
|
4
|
+
data.tar.gz: ee98db5d1119d48ec55f813487a43a5a8e3665df
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b637b2549b882f5a5d1cd6fa5ce8933d01dd633e4aadf55dd4acd634337194c81c3a022375a1ef6651afd4f15411089baeabecbc88c166587b166cad065bf4b5
|
7
|
+
data.tar.gz: f544bb9fb70d3eb34be5c57e1f550d6e2ecc0a59c3c744c1c35686566d4d5c02956bd892f8d958ea0d2ee6ba477cf67114ef67bfd0b46a7d79abbfc28de13579
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at guircasimiro@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rmetrics (0.1.0)
|
5
|
+
activesupport (~> 5.1)
|
6
|
+
influxdb (~> 0.6.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
activesupport (5.2.1)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 0.7, < 2)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
tzinfo (~> 1.1)
|
16
|
+
concurrent-ruby (1.0.5)
|
17
|
+
coveralls (0.8.22)
|
18
|
+
json (>= 1.8, < 3)
|
19
|
+
simplecov (~> 0.16.1)
|
20
|
+
term-ansicolor (~> 1.3)
|
21
|
+
thor (~> 0.19.4)
|
22
|
+
tins (~> 1.6)
|
23
|
+
docile (1.3.1)
|
24
|
+
i18n (1.1.0)
|
25
|
+
concurrent-ruby (~> 1.0)
|
26
|
+
influxdb (0.6.0)
|
27
|
+
json (2.1.0)
|
28
|
+
minitest (5.11.3)
|
29
|
+
rake (10.4.2)
|
30
|
+
simplecov (0.16.1)
|
31
|
+
docile (~> 1.1)
|
32
|
+
json (>= 1.8, < 3)
|
33
|
+
simplecov-html (~> 0.10.0)
|
34
|
+
simplecov-html (0.10.2)
|
35
|
+
term-ansicolor (1.6.0)
|
36
|
+
tins (~> 1.0)
|
37
|
+
thor (0.19.4)
|
38
|
+
thread_safe (0.3.6)
|
39
|
+
tins (1.16.3)
|
40
|
+
tzinfo (1.2.5)
|
41
|
+
thread_safe (~> 0.1)
|
42
|
+
|
43
|
+
PLATFORMS
|
44
|
+
ruby
|
45
|
+
|
46
|
+
DEPENDENCIES
|
47
|
+
activesupport
|
48
|
+
coveralls
|
49
|
+
influxdb
|
50
|
+
minitest (~> 5.11)
|
51
|
+
rake (~> 10.0)
|
52
|
+
rmetrics!
|
53
|
+
|
54
|
+
BUNDLED WITH
|
55
|
+
1.16.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Guilherme Casimiro
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# Rmetrics
|
2
|
+
|
3
|
+
Rmetrics is a gem that relies on ActiveSupport to get all metrics in your Rails application, such as: ActionController, ActiveView, ActiveRecord, ActionMailer, ActiveSupport, ActiveJob, ActionCable and ActiveStorage
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'rmetrics'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install rmetrics
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
To start get all the metrics you want, you have to call Rmetrics.setup inside a file in config/initializers/rmetrics.rb.
|
24
|
+
One example of how you should setup rmetrics is below:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
Rmetrics.setup do |config|
|
28
|
+
config.action_controller = ['start_processing.action_controller',
|
29
|
+
'process_action.action_controller',
|
30
|
+
'redirect_to.action_controller']
|
31
|
+
config.active_view = ['render_template.action_view',
|
32
|
+
'render_partial.action_view']
|
33
|
+
config.active_record = ['instantiation.active_record',
|
34
|
+
'sql.active_record']
|
35
|
+
config.action_mailer = ['receive.action_mailer']
|
36
|
+
config.active_support = ['cache_read.active_support']
|
37
|
+
config.active_job = ['enqueue_at.active_job']
|
38
|
+
config.action_cable = ['perform_action.action_cable']
|
39
|
+
config.active_storage = ['service_upload.active_storage']
|
40
|
+
config.db_config = { username: ENV['INFLUX_USERNAME'],
|
41
|
+
password: ENV['INFLUX_PASSWORD'],
|
42
|
+
database: ENV['INFLUX_DATABASE'],
|
43
|
+
host: ENV['INFLUX_HOST'],
|
44
|
+
port: ENV['INFLUX_PORT'], retry: 10 }
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
After that, you have to subscribe to all Action or Active you want, one example is given below:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
events = Rmetrics::Events.new
|
52
|
+
events.controller_subscribe_events
|
53
|
+
events.record_subscribe_events
|
54
|
+
events.view_subscribe_events
|
55
|
+
```
|
56
|
+
|
57
|
+
## Development
|
58
|
+
|
59
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
60
|
+
|
61
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
62
|
+
|
63
|
+
## Contributing
|
64
|
+
|
65
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/chiligumdev/rmetrics. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
66
|
+
|
67
|
+
## License
|
68
|
+
|
69
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
70
|
+
|
71
|
+
## Code of Conduct
|
72
|
+
|
73
|
+
Everyone interacting in the Rmetrics project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/chiligumdev/rmetrics/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'rake/testtask'
|
4
|
+
|
5
|
+
Rake::TestTask.new do |t|
|
6
|
+
t.libs << 'test'
|
7
|
+
t.test_files = FileList['test/*/test_*.rb']
|
8
|
+
t.verbose = true
|
9
|
+
end
|
10
|
+
|
11
|
+
task :console do
|
12
|
+
exec 'irb -r rmetrics -I ./lib'
|
13
|
+
end
|
14
|
+
|
15
|
+
require 'coveralls/rake/task'
|
16
|
+
Coveralls::RakeTask.new
|
17
|
+
task test_with_coveralls: [:spec, :features, 'coveralls:push']
|
18
|
+
|
19
|
+
desc 'Run tests'
|
20
|
+
task default: :test
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'rmetrics'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/rmetrics.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support'
|
4
|
+
require 'rmetrics/influx'
|
5
|
+
require 'rmetrics/events'
|
6
|
+
require 'yaml'
|
7
|
+
|
8
|
+
# lib/rmetrics.rb
|
9
|
+
module Rmetrics
|
10
|
+
# rubocop:disable Style/ClassVars
|
11
|
+
# Defines what kind of metric should catch inside ActionController
|
12
|
+
mattr_accessor :action_controller
|
13
|
+
@@action_controller = ['start_processing.action_controller']
|
14
|
+
|
15
|
+
# Defines what kind of metric should catch inside ActiveView
|
16
|
+
mattr_accessor :active_view
|
17
|
+
@@active_view = []
|
18
|
+
|
19
|
+
# Defines what kind of metric should catch inside ActiveRecord
|
20
|
+
mattr_accessor :active_record
|
21
|
+
@@active_record = ['sql.active_record']
|
22
|
+
|
23
|
+
# Defines what kind of metric should catch inside ActionMailer
|
24
|
+
mattr_accessor :action_mailer
|
25
|
+
@@action_mailer = []
|
26
|
+
|
27
|
+
# Defines what kind of metric should catch inside ActiveSupport
|
28
|
+
mattr_accessor :active_support
|
29
|
+
@@active_support = []
|
30
|
+
|
31
|
+
# Defines what kind of metric should catch inside ActiveJob
|
32
|
+
mattr_accessor :active_job
|
33
|
+
@@active_job = []
|
34
|
+
|
35
|
+
# Defines what kind of metric should catch inside ActionCable
|
36
|
+
mattr_accessor :action_cable
|
37
|
+
@@action_cable = []
|
38
|
+
|
39
|
+
# Defines what kind of metric should catch inside ActiveStorage
|
40
|
+
mattr_accessor :active_storage
|
41
|
+
@@active_storage = []
|
42
|
+
|
43
|
+
mattr_accessor :db_config
|
44
|
+
@@db_config = { database: 'metrics' }
|
45
|
+
# rubocop:enable Style/ClassVars
|
46
|
+
|
47
|
+
def self.setup
|
48
|
+
yield self
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Rmetrics
|
4
|
+
# Handles action events across rails
|
5
|
+
class Events
|
6
|
+
attr_reader :db_client
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@db_client = Rmetrics::Influx.new(Rmetrics.db_config)
|
10
|
+
end
|
11
|
+
|
12
|
+
def notification_subscription(action_name)
|
13
|
+
ActiveSupport::Notifications.subscribe(action_name) do |*args|
|
14
|
+
event = ActiveSupport::Notifications::Event.new(*args)
|
15
|
+
@db_client.write_data(action_name, event)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def controller_subscribe_events
|
20
|
+
Rmetrics.action_controller.each do |action|
|
21
|
+
notification_subscription(action.to_s)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def view_subscribe_events
|
26
|
+
Rmetrics.active_view.each do |action|
|
27
|
+
notification_subscription(action.to_s)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def record_subscribe_events
|
32
|
+
Rmetrics.active_record.each do |action|
|
33
|
+
notification_subscription(action.to_s)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def mailer_subscribe_events
|
38
|
+
Rmetrics.action_mailer.each do |action|
|
39
|
+
notification_subscription(action.to_s)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def support_subscribe_events
|
44
|
+
Rmetrics.active_support.each do |action|
|
45
|
+
notification_subscription(action.to_s)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def job_subscribe_events
|
50
|
+
Rmetrics.active_job.each do |action|
|
51
|
+
notification_subscription(action.to_s)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def cable_subscribe_events
|
56
|
+
Rmetrics.action_cable.each do |action|
|
57
|
+
notification_subscription(action.to_s)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def storage_subscribe_events
|
62
|
+
Rmetrics.active_storage.each do |action|
|
63
|
+
notification_subscription(action.to_s)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'influxdb'
|
2
|
+
|
3
|
+
module Rmetrics
|
4
|
+
# Handles the comunnication to Influx DB
|
5
|
+
class Influx
|
6
|
+
def initialize(options = {})
|
7
|
+
@influx_client = InfluxDB::Client.new(options)
|
8
|
+
end
|
9
|
+
|
10
|
+
def write_data(table, data)
|
11
|
+
@influx_client.write_point(table, organize_event(data))
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
# rubocop:disable Metrics/MethodLength
|
17
|
+
def adjust_values(act, payload)
|
18
|
+
payload.each do |key, value|
|
19
|
+
case value
|
20
|
+
when Hash
|
21
|
+
act[:tags].merge!(value.select { |_, v| v.is_a?(String) })
|
22
|
+
when Numeric, Integer
|
23
|
+
act[:values][key.to_sym] = value.to_f
|
24
|
+
when String, TrueClass, FalseClass
|
25
|
+
act[:values][key.to_sym] = value
|
26
|
+
when Symbol
|
27
|
+
act[:values][key.to_sym] = value.to_s
|
28
|
+
else
|
29
|
+
next
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
# rubocop:enable Metrics/MethodLength
|
34
|
+
|
35
|
+
def organize_event(event)
|
36
|
+
act = {
|
37
|
+
values: {
|
38
|
+
duration: event.duration
|
39
|
+
},
|
40
|
+
tags: {
|
41
|
+
name: event.name
|
42
|
+
}
|
43
|
+
}
|
44
|
+
adjust_values(act, event.payload)
|
45
|
+
act
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
data/rmetrics.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'rmetrics/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'rmetrics'
|
7
|
+
spec.version = Rmetrics::VERSION
|
8
|
+
spec.authors = ['Guilherme Casimiro']
|
9
|
+
spec.email = ['guircasimiro@gmail.com']
|
10
|
+
# rubocop:disable Metrics/LineLength
|
11
|
+
spec.summary = 'Catch and send your rails metrics to your influx database.'
|
12
|
+
spec.description = 'Catch and send your rails metrics to your influx database.'
|
13
|
+
# rubocop:enable Metrics/LineLength
|
14
|
+
spec.homepage = 'https://github.com/chiligumdev/rmetrics'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
if spec.respond_to?(:metadata)
|
18
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
19
|
+
else
|
20
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
21
|
+
'public gem pushes.'
|
22
|
+
end
|
23
|
+
|
24
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
25
|
+
f.match(%r{^(test|spec|features)/})
|
26
|
+
end
|
27
|
+
spec.bindir = 'exe'
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ['lib']
|
30
|
+
|
31
|
+
spec.add_development_dependency 'coveralls', '~> 0.7'
|
32
|
+
spec.add_development_dependency 'minitest', '~> 5.11'
|
33
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
34
|
+
spec.add_dependency 'activesupport', '~> 5.1'
|
35
|
+
spec.add_dependency 'influxdb', '~> 0.6.0'
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rmetrics
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Guilherme Casimiro
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: coveralls
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.11'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activesupport
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: influxdb
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.6.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.6.0
|
83
|
+
description: Catch and send your rails metrics to your influx database.
|
84
|
+
email:
|
85
|
+
- guircasimiro@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".travis.yml"
|
92
|
+
- CODE_OF_CONDUCT.md
|
93
|
+
- Gemfile
|
94
|
+
- Gemfile.lock
|
95
|
+
- LICENSE.txt
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- bin/console
|
99
|
+
- bin/setup
|
100
|
+
- lib/rmetrics.rb
|
101
|
+
- lib/rmetrics/events.rb
|
102
|
+
- lib/rmetrics/influx.rb
|
103
|
+
- lib/rmetrics/version.rb
|
104
|
+
- rmetrics.gemspec
|
105
|
+
homepage: https://github.com/chiligumdev/rmetrics
|
106
|
+
licenses:
|
107
|
+
- MIT
|
108
|
+
metadata:
|
109
|
+
allowed_push_host: https://rubygems.org
|
110
|
+
post_install_message:
|
111
|
+
rdoc_options: []
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
requirements: []
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 2.6.14
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: Catch and send your rails metrics to your influx database.
|
130
|
+
test_files: []
|