[Dnsmasq-discuss] Stats improvement

Olivier Mauras olivier at core-hosting.net
Sat Mar 29 23:25:21 UTC 2014



On Thu, 2014-03-27 at 20:57 +0000, Simon Kelley wrote:
> On 26/03/14 05:12, Olivier Mauras wrote:
> > Yes it should definitely be TXT records. Sounds really good to me.
> > 
> > for upstream servers, why not having upstream.bind return total
> > queries forwarded + list of upstream servers that can then be check
> > individually with: dig TXT <server1>.upstream.bind
> 
> OK. Code in git now.
> 
> Try eg
> 
> dig +short chaos txt misses.bind
> 
> and
> 
> dig +short chaos txt servers.bind
> 
> 
> 
> Cheers,
> 
> Simon.
> 
> > 
> > 
> > Olivier
> > 
> > On Tue, 2014-03-25 at 21:37 +0000, Simon Kelley wrote:
> >> My feeling it that this should use TXT records, then they can be 
> >> extracted into any application using eg
> >> 
> >> dig +short chaos txt stats.bind
> >> 
> >> or the equivalent, which outputs the string to stdout.
> >> 
> >> The current code has,
> >> 
> >> 
> >> cache-size, insertions which evicted unexpired cache entries,
> >> queries forwarded, queries answered locally, queries for auth
> >> zones.
> >> 
> >> 
> >> then for each upstream server,
> >> 
> >> queries sent, and queries retried or failed.
> >> 
> >> We could have
> >> 
> >> size.bind and evictions.bind for cache size and evictions 
> >> local.bind, upstream.bind and auth.bind for queries.
> >> 
> >> But how to handle the variable number of upstream servers. Just
> >> free text?
> >> 
> >> 
> >> 
> >> Simon.
> >> 
> >> Enigmail On 24/03/14 22:53, Olivier Mauras wrote:
> >>> 
> >>> 
> >>> On Mon, 2014-03-24 at 21:55 +0000, Simon Kelley wrote:
> >>>> On 24/03/14 11:25, Olivier Mauras wrote:
> >>>>> 
> >>>>> 
> >>>>> Hello,
> >>>>> 
> >>>>> I was wondering what would be the effort, and if there'd 
> >>>>> actually be any interest for some dnsmasq statistics 
> >>>>> improvements. (Yes i'm splitting dicussions ^^) For 
> >>>>> monitoring/graph purposes, actual dnsmasq stats are a bit 
> >>>>> difficult to use and completely unusable if using
> >>>>> "log_queries" as it takes too long to retrieve them inside
> >>>>> logs.
> >>>>> 
> >>>>> I'd love to see a stats "interface" that would output 
> >>>>> total_queries, cache_hits, cache_misses, memory used by
> >>>>> cache, etc....
> >>>>> 
> >>>>> Thanks, Olivier
> >>>>> 
> >>>> 
> >>>> There's an idea to make this available as a DNS query, in
> >>>> the same way that
> >>>> 
> >>>> 
> >>>> dig chaos txt version.bind
> >>>> 
> >>>> returns the version number.
> >>>> 
> >>>> Comments?
> >>>> 
> >>>> Cheers,
> >>>> 
> >>>> Simon.
> >>>> 
> >>>> 
> >>> 
> >>> That would be a really good way of doing it!
> >>> 
> >> 
> > 
> 

Just gave it a quick check, this is brilliant :)
Thanks a lot for this!

Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20140330/214aadff/attachment.sig>


More information about the Dnsmasq-discuss mailing list