Module: Multimeter
- Defined in:
- lib/multimeter.rb,
lib/multimeter/version.rb
Defined Under Namespace
Modules: GlobalMetrics, Http, InstanceMetrics, Jmx, LinkedInstanceMetrics, LinkedMetrics, Metrics
Classes: Aggregate, ProcGauge, Registry
Constant Summary
collapse
- GLOBAL_REGISTRY =
registry('global', 'global')
- VERSION =
'1.1.0'
Class Method Summary
collapse
Class Method Details
.global_registry ⇒ Object
141
142
143
|
# File 'lib/multimeter.rb', line 141
def self.global_registry
GLOBAL_REGISTRY
end
|
.metrics(group, scope, &block) ⇒ Object
149
150
151
152
153
154
155
156
|
# File 'lib/multimeter.rb', line 149
def self.metrics(group, scope, &block)
Class.new do
include(Metrics)
group(group)
scope(scope)
instance_eval(&block)
end.new
end
|
.registry(group, scope, instance_id = nil) ⇒ Object
145
146
147
|
# File 'lib/multimeter.rb', line 145
def self.registry(group, scope, instance_id=nil)
Registry.new(group, scope, instance_id)
end
|