Find out how to effectively and easily monitor and troubleshoot Dnsmasq DNS Forwarder using Netdata
What is Dnsmasq?
Dnsmasq is an open-source, lightweight, DNS caching and forwarding server. It is designed to provide DNS resolution for small and home networks. Dnsmasq provides local DNS caching, forwarding, and recursive lookups, as well as DHCP, TFTP, and other related services. It also has support for DNS and DHCPv6, as well as various other features such as DNS-over-TLS and IPv6 privacy extensions. Dnsmasq is a versatile and highly configurable tool that is simple to use.
You can find more details on DHCP monitoring with Dnsmasq.
Monitoring Dnsmasq with Netdata
The prerequisites for monitoring Dnsmasq with Netdata are to have Dnsmasq and Netdata installed on your system.
Netdata auto discovers hundreds of services, and for those services it doesn't discover, you can turn on manual discovery with a one line configuration. For more information on configuring Netdata for Dnsmasq monitoring please read the collector documentation.
You should now see the dnsmasq section on the Overview tab in Netdata Cloud already populated with charts about all the metrics you care about.
Netdata has a public demo space (no login required) where you can explore different monitoring use-cases and get a feel for Netdata.
What Dnsmasq metrics are important to monitor?
servers_queries
- The number of queries forwarded to the upstream server.
- failed - Number of failed queries.
- success - Number of successful queries.
cache_size
- The DNS Cache size refers to the number of cached entries and can be configured for optimised performance.
- size - Number of cached entries.
cache_operations
- The cache operations rate.
- evictions - Rate of cached entry evictions.
- Insertions - Rate of cached entry insertions.
cache_performance
- The rate of cache hits.
- hits - Rate of cache hits
- misses - Rate of cache misses
Troubleshooting Dnsmasq with Netdata
Alerts
Netdata has built-in alerts to reduce the monitoring burden for you.
If you would like to update the alert thresholds for any of these alerts or want to create your own alert for another metric – please follow the instructions here.
By default you will receive email notifications whenever an alert is triggered – if you would not like to receive these notifications you can turn them off from your profile settings.
Anomaly Advisor
Anomaly Advisor lets you quickly identify if the system you are monitoring has any anomalies and allows you to drill down into which metrics are behaving anomalously.
To learn more about how to use Anomaly Advisor to troubleshoot your Apache web server check out the documentation or visit the anomalies tab in the demo space to play with it right now.
Metric Correlations
Metric Correlations lets you quickly find metrics and charts related to a particular window of interest that you want to explore further. By displaying the standard Netdata dashboard, filtered to show only charts that are relevant to the window of interest, you can get to the root cause sooner.
Let us hear from you
If you haven’t already, sign up now for a free Netdata account!
We’d love to hear from you – if you have any questions, complaints or feedback please reach out to us on Discord or Github.
Happy Troubleshooting!