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

Class Method Details

.cObject

Shortcut for ‘Fozzie.config`



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

def c
  config
end

.configObject

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 }`

Yields:

  • (c)


41
42
43
# File 'lib/fozzie.rb', line 41

def configure
  yield c if block_given?
end

.loggerObject

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