Skip to content

Instantly share code, notes, and snippets.

@gnarg
Created November 23, 2011 21:06
Show Gist options
  • Select an option

  • Save gnarg/1389910 to your computer and use it in GitHub Desktop.

Select an option

Save gnarg/1389910 to your computer and use it in GitHub Desktop.
Initializer to bypass access to /proc fs
require 'new_relic/agent/sampler'
module NewRelic
module Agent
module Samplers
class MemorySampler < NewRelic::Agent::Sampler
def self.supported_on_this_platform?
false
end
end
end
end
class LocalEnvironment
def gather_cpu_info
nil
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment