def sample(key, value)
      ActiveMetrics::Collector.record(key, { metric: 'sample', value: value })
    end
def sample(key, value)
      ActiveMetrics::Collector.record(key, { metric: 'sample', value: value })
    end
Sample metrics are used to convey simple key/numerical value pairs when
 you are already calculating some kind of summary statistic in your app and
 merely need a simple transport mechanism to Librato.

 Typically you would submit sample metrics on some periodic tick and set
 said period on the metric in Librato.

 @param key [String] The name of the sample
 @param value [Object] The value of the sample