util/statsd.lua
changeset 12391 05c250fa335a
parent 12128 7d985e5bc1fb
child 12979 d10957394a3c
equal deleted inserted replaced
12390:2d3080d02960 12391:05c250fa335a
    83 -- Histograms
    83 -- Histograms
    84 local histogram_metric_mt = {}
    84 local histogram_metric_mt = {}
    85 histogram_metric_mt.__index = histogram_metric_mt
    85 histogram_metric_mt.__index = histogram_metric_mt
    86 
    86 
    87 local function new_histogram_metric(buckets, full_name, impl)
    87 local function new_histogram_metric(buckets, full_name, impl)
    88 	-- NOTE: even though the more or less proprietrary dogstatsd has its own
    88 	-- NOTE: even though the more or less proprietary dogstatsd has Its own
    89 	-- histogram implementation, we push the individual buckets in this statsd
    89 	-- histogram implementation, we push the individual buckets in this statsd
    90 	-- backend for both consistency and compatibility across statsd
    90 	-- backend for both consistency and compatibility across statsd
    91 	-- implementations.
    91 	-- implementations.
    92 	local metric = {
    92 	local metric = {
    93 		_sum_name = full_name..".sum",
    93 		_sum_name = full_name..".sum",