puma-newrelic-codeur 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/puma/newrelic/plugin.rb +1 -4
- data/lib/puma/newrelic/version.rb +1 -1
- data/lib/puma/newrelic.rb +0 -9
- data/lib/puma/plugin/newrelic.rb +5 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eb6e7d4286a16336d5544cb3f7094390788b71cc1f3f4ab323882ff6611e9d9
|
4
|
+
data.tar.gz: faff0b2196bd2aabf06246976f14a0595994b7216b538e0a36713bff1bc524b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 958c09beaedc91bbd6a1b6f6f0f2ddee4224146a387b3ffdcfcb839da472223904eb7442c8dcb461c3389f99417d2e3cfc57aa582b692d9d7d789dfda313b14e
|
7
|
+
data.tar.gz: 10a81c3fbb6e961af001895d2cc579ab51ca4b8cbcce0b1ec3b522555719d4e3650541775c03a4913eea496f538efb0c0824df2a94dcb4f8d64f8e39858fe954
|
data/README.md
CHANGED
@@ -18,12 +18,12 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install puma-newrelic
|
21
|
+
$ gem install puma-newrelic-codeur
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
25
|
- Install the gem
|
26
|
-
- Add `plugin
|
26
|
+
- Add `plugin :newrelic` to your puma.rb
|
27
27
|
- Create a dashboard on the NewRelic insights or NewRelic One
|
28
28
|
|
29
29
|
NQRL example:
|
data/lib/puma/newrelic/plugin.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
require_relative "sampler"
|
2
|
-
require "puma/plugin"
|
3
2
|
|
4
3
|
module Puma
|
5
4
|
module NewRelic
|
6
|
-
|
5
|
+
module Plugin
|
7
6
|
def start(launcher)
|
8
7
|
sampler = Puma::NewRelic::Sampler.new(launcher)
|
9
8
|
launcher.events.register(:state) do |state|
|
@@ -17,7 +16,5 @@ module Puma
|
|
17
16
|
end
|
18
17
|
end
|
19
18
|
end
|
20
|
-
|
21
|
-
Puma::Plugins.register "newrelic", Plugin
|
22
19
|
end
|
23
20
|
end
|
data/lib/puma/newrelic.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puma-newrelic-codeur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/puma/newrelic/plugin.rb
|
58
58
|
- lib/puma/newrelic/sampler.rb
|
59
59
|
- lib/puma/newrelic/version.rb
|
60
|
+
- lib/puma/plugin/newrelic.rb
|
60
61
|
homepage: https://github.com/codeur/puma-newrelic
|
61
62
|
licenses:
|
62
63
|
- MIT
|