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/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.0.0"

Class Method Summary collapse

Class Method Details

.cObject

Shortcut for ‘Fozzie.config`



25
26
27
# File 'lib/fozzie.rb', line 25

def c
  config
end

.configObject

Returns the current configuration. Creates configuration on first-time request



30
31
32
# File 'lib/fozzie.rb', line 30

def config
  @config ||= Configuration.new
end

.configure {|c| ... } ⇒ Object

Allows the setting on valudes against the configuration

‘Fozzie.configure {|config| config.wat = :random }`

Yields:

  • (c)


37
38
39
# File 'lib/fozzie.rb', line 37

def configure
  yield c if block_given?
end

.loggerObject

Accessor for logger

‘Fozzie.logger.warn ’foo’‘



52
53
54
# File 'lib/fozzie.rb', line 52

def logger
  @logger
end

.logger=(logger) ⇒ Object

Set a logger

‘Fozzie.logger = Logger.new(STDOUT)`



45
46
47
# File 'lib/fozzie.rb', line 45

def logger=(logger)
  @logger = logger
end