Module: Fozzie
- Defined in:
- lib/fozzie.rb,
lib/fozzie/dsl.rb,
lib/fozzie/sniff.rb,
lib/fozzie/version.rb,
lib/fozzie/bulk_dsl.rb,
lib/fozzie/exception.rb,
lib/fozzie/interface.rb,
lib/fozzie/configuration.rb,
lib/fozzie/adapter/statsd.rb,
lib/fozzie/adapter/datadog.rb,
lib/fozzie/rack/middleware.rb
Overview
Fozzie is an implementation of the Statsd statistics gathering tool, designed to make gathering stastistics from applications easy, fast, and effective.
Configuration can be applied through a block and/or configuration file (‘config/fozzie.yml’)
Fozzie provides automatic namespacing for the current environment, and host.
Rack and Rails middleware is avaliable to gather statistics on the processing time of Controller actions.
Defined Under Namespace
Modules: Adapter, Interface, Rack, Sniff Classes: AdapterMissing, BulkDsl, Configuration, Dsl
Constant Summary collapse
- VERSION =
"1.1.0"
Class Method Summary collapse
-
.c ⇒ Object
Shortcut for ‘Fozzie.config`.
-
.config ⇒ Object
Returns the current configuration.
-
.configure {|c| ... } ⇒ Object
Allows the setting on valudes against the configuration.
-
.logger ⇒ Object
Accessor for logger.
-
.logger=(logger) ⇒ Object
Set a logger.
Class Method Details
.c ⇒ Object
Shortcut for ‘Fozzie.config`
29 30 31 |
# File 'lib/fozzie.rb', line 29 def c config end |
.config ⇒ Object
Returns the current configuration. Creates configuration on first-time request
34 35 36 |
# File 'lib/fozzie.rb', line 34 def config @config ||= Configuration.new end |
.configure {|c| ... } ⇒ Object
Allows the setting on valudes against the configuration
‘Fozzie.configure {|config| config.wat = :random }`
41 42 43 |
# File 'lib/fozzie.rb', line 41 def configure yield c if block_given? end |
.logger ⇒ Object
Accessor for logger
‘Fozzie.logger.warn ’foo’‘
56 57 58 |
# File 'lib/fozzie.rb', line 56 def logger @logger end |
.logger=(logger) ⇒ Object
Set a logger
‘Fozzie.logger = Logger.new(STDOUT)`
49 50 51 |
# File 'lib/fozzie.rb', line 49 def logger=(logger) @logger = logger end |