formatted-metrics 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -4
- data/lib/metrics.rb +4 -0
- data/lib/metrics/railtie.rb +0 -3
- data/lib/metrics/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -40,11 +40,11 @@ Metrics.instrument 'sidekiq.queue', source: 'background' do
|
|
40
40
|
end
|
41
41
|
# => 'source=app.background measure.sidekiq.queue=500ms'
|
42
42
|
|
43
|
-
Metrics.group 'sidekiq' do
|
44
|
-
instrument 'queues.process', 100, units: 'jobs'
|
45
|
-
instrument 'workers.busy', 10, units: 'workers'
|
43
|
+
Metrics.group 'sidekiq' do |group|
|
44
|
+
group.instrument 'queues.process', 100, units: 'jobs'
|
45
|
+
group.instrument 'workers.busy', 10, units: 'workers'
|
46
46
|
|
47
|
-
instrument 'queue.time', source: 'worker.1' do
|
47
|
+
group.instrument 'queue.time', source: 'worker.1' do
|
48
48
|
sleep 1
|
49
49
|
end
|
50
50
|
end
|
data/lib/metrics.rb
CHANGED
data/lib/metrics/railtie.rb
CHANGED
data/lib/metrics/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formatted-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
segments:
|
108
108
|
- 0
|
109
|
-
hash:
|
109
|
+
hash: -3219838267565125949
|
110
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
segments:
|
117
117
|
- 0
|
118
|
-
hash:
|
118
|
+
hash: -3219838267565125949
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
121
|
rubygems_version: 1.8.23
|