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/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/instruments/counter.rb,
lib/ruby-metrics/integration/webrick.rb,
lib/ruby-metrics/instruments/histogram.rb,
lib/ruby-metrics/statistics/uniform_sample.rb,
lib/ruby-metrics/integration/rack_middleware.rb,
lib/ruby-metrics/statistics/exponential_sample.rb,
lib/ruby-metrics/instruments/post_process_meter.rb,
lib/ruby-metrics/instruments/post_process_timer.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: Instruments, Integration, Logging, Statistics, TimeConversion Classes: Agent, Hours, Microseconds, Milliseconds, Minutes, Nanoseconds, Seconds, TimeUnit

Constant Summary collapse

VERSION =
"0.8.9"

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