[dnsdist] Query counters
Miguel Miranda
miguel.mirandag at gmail.com
Thu Sep 1 20:22:34 UTC 2016
Hello to all, i am reading the configuration and i am wondering what kind
of per-records statistics will show in metronome when query counteris
enabled?
something like this?
Dst Domain qps
www.google.com 1000
www.facebook.com 6000
Src Ip qps
8.8.8.8 1000
4.4.4.4 4000
etc
By the way i upgraded dnsdist to 1.0.0 using the repos and i got this error
when i configure query counters,:
Fatal error: [string "chunk"]:33: attempt to call global
'setQueryCountFilter' (a nil value)
i copied verbatin the README example:
function filter(dq)
qname = dq.qname:toString()
-- don't count PTRs at all
if(qname:match('in%-addr.arpa$')) then
return false, ""
end
-- count these queries as if they were queried without leading www.
if(qname:match('^www.')) then
qname = qname:gsub('^www.', '')
end
-- count queries by default
return true, qname
end
setQueryCountFilter(filter)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20160901/eb91fe90/attachment.html>
More information about the dnsdist
mailing list