class ElasticAPM::Metrics::Collector
def initialize(config, tags: nil, &block)
def initialize(config, tags: nil, &block) @config = config @tags = tags @samplers = [CpuMem, VM].map do |kls| debug "Adding metrics collector '#{kls}'" kls.new(config) end @callback = block end