This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/collector/components/contrib/dnscheckreceiver.md.

DNS Check Receiver

OpenTelemetry Collector receiver · contrib distribution

The DNS Check Receiver can be used for synthetic checks against DNS servers.

  • Component ID: contrib-dnscheckreceiver
  • Name: dnscheckreceiver
  • Type: receiver
  • Distribution: contrib
  • Repository: opentelemetry-collector-contrib

Stability

LevelSignals
developmentmetrics

Metrics

MetricTypeValue typeUnitStabilityEnabledAttributesDescription
dnscheck.durationgaugeintmsdevelopmentyesRound-trip duration of the DNS query.
dnscheck.errorsumint{error}developmentnoerror.message (string)Number of errors recorded during the DNS check.
dnscheck.statussumint1developmentyesdns.rcode (int), dns.resolved.all.ips (string), dns.resolved.ip (string)1 if the DNS query returned successfully, 0 otherwise. The dns.resolved.ip and dns.resolved.all.ips attributes are only present when the value is 1 and the record type is A or AAAA. The dns.rcode attribute is present whenever a response was received from the server, including non-success responses such as NXDOMAIN, SERVFAIL, or REFUSED; it is absent only when no response was received at all (e.g. timeout or network unreachable).

Attributes

AttributeTypeDescription
dns.rcodeintDNS response code (RCODE) returned for the query. Only present when a response was received from the server, including non-success responses such as NXDOMAIN, SERVFAIL, or REFUSED. Absent when no response was received at all (e.g. timeout or network unreachable). See the RCODE Reference table in the README for the meaning of each value, based on the IANA DNS Parameters registry (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6).
dns.resolved.all.ipsstringAll resolved IP addresses.
dns.resolved.ipstringFirst/primary resolved IP address.
error.messagestringError message recorded when the DNS check fails.

Data

  • JSON (latest): /data/collector/components/contrib-dnscheckreceiver/latest.json
  • JSON (pinned): /data/collector/components/contrib-dnscheckreceiver/contrib-dnscheckreceiver-b6439dff75c3.json
  • Explore: /collector/components/contrib/dnscheckreceiver