Skip to content

Latest commit

 

History

History

dns_latency

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Ganglia DNS latency

Ganglia python plug-in to collect and graph DNS query response times

Sample CLI ouput

$ python dnslatency.py
It took 0.014626 to resolve google.com on google-public-dns-b.google.com
It took 0.017215 to resolve google.com on google-public-dns-a.google.com

Installation

Create a dnslatency.pyconf in /etc/ganglia/conf.d with one or more params similar to the following:

param googledns_dns_resolution {
    # Format: SERVER_NAMENAME_TO_QUERYRECORD_TYPE
    #   value = "google-public-dns-a.google.com google.com A"
}

Each param needs a unique name and the value should contain the name of the DNS server to query, a domain name and the type of record to check. Ganglia will then query the server and graph the time it took to resolve the name.