Module: Metrics

Defined in:
lib/ruby-metrics/integration/rack_endpoint.rb,
lib/ruby-metrics.rb,
lib/ruby-metrics/agent.rb,
lib/ruby-metrics/logging.rb,
lib/ruby-metrics/version.rb,
lib/ruby-metrics/reporter.rb,
lib/ruby-metrics/time_units.rb,
lib/ruby-metrics/integration.rb,
lib/ruby-metrics/instruments/gauge.rb,
lib/ruby-metrics/instruments/meter.rb,
lib/ruby-metrics/instruments/timer.rb,
lib/ruby-metrics/reporters/librato.rb,
lib/ruby-metrics/instruments/counter.rb,
lib/ruby-metrics/integration/webrick.rb,
lib/ruby-metrics/instruments/histogram.rb,
lib/ruby-metrics/instruments/instrument.rb,
lib/ruby-metrics/statistics/uniform_sample.rb,
lib/ruby-metrics/integration/rack_middleware.rb,
lib/ruby-metrics/statistics/exponential_sample.rb

Overview

Provides:

  • configurable agent

  • configurable endpoint for current metrics

    • strings == path_info

    • regexp =~ path_info

    • proc.call(env) #=> boolean

  • env upstream

  • specific metrics by default

    • requests (timer)

    • uncaught_exceptions (counter)

    • response_1xx through response_5xx (counter)

Defined Under Namespace

Modules: Hours, Instruments, Integration, Logging, Microseconds, Milliseconds, Minutes, Nanoseconds, Reporters, Seconds, Statistics, TimeConversion Classes: Agent, Reporter

Constant Summary collapse

VERSION =
'0.9.4'

Class Attribute Summary collapse

Class Attribute Details

.loggerObject



9
10
11
# File 'lib/ruby-metrics.rb', line 9

def logger
  @logger ||= Logger.new(STDOUT)
end