yabeda-rails 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +6 -4
- data/lib/yabeda/rails/railtie.rb +5 -1
- data/lib/yabeda/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00254e5e7e0ae29d42202878964ae8fa9260ab3876890bf726672888e5093e0f
|
4
|
+
data.tar.gz: bd4b76a4b6b05831f8093b11575b201af09559be18e256352933673fee53f9a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 483e9952ee662d3ba3abe97c3b8f2b142c873b4b44ba6e184f475df3810eecd43512eee28da129d3e236ad5e554989814dea90c2366b3f99b78a0e53bb3e5a0c
|
7
|
+
data.tar.gz: 607657e05536fe692899567734a2c17e588e145bb57cf2cf682d289cf312f3df0312739d2a872308f0a1cc281d87432b6236bc524d8f6b2a329bec30b1e7a0e5
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## 0.5.0 - 2020-03-27
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Support for Unicorn application server. @vast in [#9](https://github.com/yabeda-rb/yabeda-rails/pull/9)
|
13
|
+
|
8
14
|
## 0.4.0 - 2020-01-28
|
9
15
|
|
10
16
|
### Changed
|
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# Yabeda::[Rails]
|
2
2
|
|
3
|
-
Built-in metrics for out-of-the box [Rails] applications monitoring
|
3
|
+
Built-in metrics for out-of-the box [Rails] applications monitoring.
|
4
4
|
|
5
|
-
|
5
|
+
If your monitoring system already collects Rails metrics (e.g. NewRelic) then you don't need this gem metrics, but `yabeda-rails` also will automatically configure Yabeda in your Rails application.
|
6
|
+
|
7
|
+
Sample Grafana dashboard ID: [11668](https://grafana.com/grafana/dashboards/11668)
|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
@@ -20,7 +22,7 @@ And then execute:
|
|
20
22
|
|
21
23
|
### Registering metrics on server process start
|
22
24
|
|
23
|
-
Currently, yabeda-rails automatically registers rails metrics when a server is started via `rails server
|
25
|
+
Currently, yabeda-rails automatically registers rails metrics when a server is started via `rails server`, `puma -C config/puma.rb` or `unicorn -c`. However, other application servers or launching via `rackup` aren't supported at the moment.
|
24
26
|
|
25
27
|
A possible workaround is to detect server process and manually activate yabeda-rails in an initializer:
|
26
28
|
|
@@ -32,7 +34,7 @@ if your_app_server_process? # Your logic here
|
|
32
34
|
end
|
33
35
|
```
|
34
36
|
|
35
|
-
You always can add support for your app server to [lib/yabeda/rails/railtie.rb](). Pull Requests are always welcome!
|
37
|
+
You always can add support for your app server to [lib/yabeda/rails/railtie.rb](lib/yabeda/rails/railtie.rb). Pull Requests are always welcome!
|
36
38
|
|
37
39
|
|
38
40
|
## Metrics
|
data/lib/yabeda/rails/railtie.rb
CHANGED
@@ -11,8 +11,12 @@ module Yabeda
|
|
11
11
|
::Rails.const_defined?('Puma::CLI')
|
12
12
|
end
|
13
13
|
|
14
|
+
def unicorn_server?
|
15
|
+
::Rails.const_defined?("Unicorn::Launcher")
|
16
|
+
end
|
17
|
+
|
14
18
|
config.after_initialize do
|
15
|
-
::Yabeda::Rails.install! if rails_server? || puma_server?
|
19
|
+
::Yabeda::Rails.install! if rails_server? || puma_server? || unicorn_server?
|
16
20
|
Yabeda.configure! unless Yabeda.already_configured?
|
17
21
|
end
|
18
22
|
end
|
data/lib/yabeda/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yabeda-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Novikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yabeda
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.
|
124
|
+
rubygems_version: 3.1.2
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Extensible metrics for monitoring Ruby on Rails application
|