class Metrics::Configuration

Attributes

driver[RW]

The driver to use.

Drivers are objects that implement the following method:

driver.write(*instrumenters) # => instrumenters written

Defaults to Metrics::Drivers::L2Met.new(logger, source).

logger[RW]

The stream source to write to. Defaults to STDOUT.

source[RW]

The base source for all metrics.

Public Instance Methods

log_formatter() click to toggle source
# File lib/metrics/configuration.rb, line 28
def log_formatter
  proc { |severity, datetime, progname, msg| "#{msg}\n" }
end