| Path: | lib/new_relic/agent/sampler.rb |
| Last Update: | Wed Feb 15 06:29:35 +0000 2017 |
encoding: utf-8 This file is distributed under New Relic‘s license terms. See github.com/newrelic/rpm/blob/master/LICENSE for complete details.
A Sampler is used to capture meaningful metrics in a background thread periodically. They will be invoked about once a minute, each time the agent sends data to New Relic‘s servers.
Samplers can be added to New Relic by subclassing NewRelic::Agent::Sampler. Instances are created when the agent is enabled and installed. Subclasses are registered for instantiation automatically.