[Dnsmasq-discuss] Stats improvement

Olivier Mauras olivier at core-hosting.net
Wed Mar 26 05:12:15 UTC 2014


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


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.
> 
> 
> 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!
> > 
> 

-------------- 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/20140326/fbd20d0b/attachment.sig>


More information about the Dnsmasq-discuss mailing list