# HG changeset patch # User Kim Alvefur # Date 1760741623 -7200 # Node ID 260a6feebe5fb49ad7552b45321b588f4f81ebe3 # Parent 4067a95336dd2062d784c11492b37272c07fba3f util.startup: Add metric bucket for zero DNS records Otherwise hard to tell the difference between 0 and 1 :) diff -r 4067a95336dd -r 260a6feebe5f util/startup.lua --- a/util/startup.lua Thu Oct 16 18:29:03 2025 +0100 +++ b/util/startup.lua Sat Oct 18 00:53:43 2025 +0200 @@ -450,7 +450,7 @@ buckets = { 1 / 1024; 1 / 256; 1 / 64; 1 / 16; 1 / 4; 1; 4 }; }); local c = statsmanager.metric("histogram", "prosody_dns_response", "records", "DNS response records", { "qclass"; "qtype" }, { - buckets = { 1; 2; 4; 8; 16 } }) + buckets = { 0; 1; 2; 4; 8; 16 } }) local function m_times(qclass, qtype) return timed(m:with_labels(qclass, qtype)); end local function m_counts(qclass, qtype, num) return c:with_labels(qclass, qtype):sample(num); end adns.instrument(m_times, m_counts);