]> git.ipfire.org Git - thirdparty/pdns.git/commit
Add :getQueries() method to Server class
authorLucas Rolff <lucas@lucasrolff.com>
Thu, 26 Jun 2025 20:36:03 +0000 (22:36 +0200)
committerLucas Rolff <lucas@lucasrolff.com>
Thu, 26 Jun 2025 20:36:03 +0000 (22:36 +0200)
commit73e5b89b115aac8c12114aba6683afc76e7a414a
tree594b5d4ea4c4dd62aae267f612dfb2973d822e1f
parenta44ba546fcaac31496ce67dcbf580e1b5804d4e0
Add :getQueries() method to Server class

This exposes the total number of queries a downstream server has handled
similarly to how the :getDrops() method are available within Lua

When doing custom logic within Lua it's sometimes useful to be able to
know how many queries a given server has handled, so this simply exposes
that metric within the Server class directly.
pdns/dnsdistdist/dnsdist-lua-bindings.cc
pdns/dnsdistdist/docs/reference/config.rst