Monitor the resolvability of and lookup times for any DNS records using nameservers of your choosing.
The DNS check is included in the Datadog Agent package, so you don't need to install anything else on the server from which you will probe your DNS servers.
Though many metrics-oriented checks are best run on the same host(s) as the monitored service, you may want to run this status-oriented check from hosts that do not run the monitored DNS services.
-
Edit the
dns_check.d/conf.yaml
file, in theconf.d/
folder at the root of your Agent's configuration directory to start collecting your DNS data. See the sample dns_check.d/conf.yaml for all available configuration options:init_config: instances: ## @param name - string - required ## Name of your DNS check instance. ## To create multiple DNS checks, create multiple instances with unique names. # - name: '<INSTANCE_NAME>' ## @param hostname - string - required ## Hostname to resolve. # hostname: '<HOSTNAME>'
If you omit the
nameserver
option, the check uses whichever nameserver is configured in local network settings. -
Restart the Agent to begin sending DNS service checks and response times to Datadog.
Run the Agent's status
subcommand and look for dns_check
under the Checks section.
See metadata.csv for a list of metrics provided by this integration.
The DNS check does not include any events.
This agent check tags all service checks it collects with:
nameserver:<nameserver_in_yaml>
resolved_hostname:<hostname_in_yaml>
dns.can_resolve
:
Returns CRITICAL if the Agent fails to resolve the request, otherwise returns UP.
Tagged by hostname
and record_type
.
Need help? Contact Datadog support.