util/openmetrics.lua
changeset 11597 0db763f3f3be
parent 11527 5f15ab7c6ae5
child 11604 a02c277eb97a
equal deleted inserted replaced
11596:64cfa396bb84 11597:0db763f3f3be
    56 		-- I-D-00: 4.1.2.2.1:
    56 		-- I-D-00: 4.1.2.2.1:
    57 		--    Exposers MUST produce output for positive infinity as +Inf.
    57 		--    Exposers MUST produce output for positive infinity as +Inf.
    58 		return "+Inf"
    58 		return "+Inf"
    59 	end
    59 	end
    60 
    60 
    61 	return string.format("%g", v)
    61 	return string.format("%.14g", v)
    62 end
    62 end
    63 
    63 
    64 -- BEGIN of generic MetricFamily implementation
    64 -- BEGIN of generic MetricFamily implementation
    65 
    65 
    66 local metric_family_mt = {}
    66 local metric_family_mt = {}