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('multimeter', 'global')
- VERSION =
'1.1.7'
Class Method Summary
collapse
Class Method Details
.global_registry ⇒ Object
138
139
140
|
# File 'lib/multimeter.rb', line 138
def self.global_registry
GLOBAL_REGISTRY
end
|
.metrics(group, scope, &block) ⇒ Object
146
147
148
149
150
151
152
153
|
# File 'lib/multimeter.rb', line 146
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
142
143
144
|
# File 'lib/multimeter.rb', line 142
def self.registry(group, scope, instance_id=nil)
Registry.new(group, scope, instance_id)
end
|