Observer
Observer Agent

Configure DNS probes

Resolve a record and report resolve time as the metric value.

DNS probes resolve a domain through the agent's DNS resolver and report the resolution time in milliseconds. Optional value-match verifies the answer.

Configuration shape

{
  "domain": "api.example.com",
  "record_type": "A",
  "expected_value": "203.0.113.10",
  "resolver": "1.1.1.1"
}

Field reference

FieldDefaultNotes
domainrequiredThe domain to resolve.
record_typeAOne of A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR.
expected_valuenoneOptional substring match against the resolved record. Mismatch reports expected_value_mismatch.
resolversystem defaultOptional override resolver IP. Useful for verifying a specific authoritative server.

Reason codes

The reason field surfaces standard Node DNS error codes:

ReasonMeaning
ENOTFOUNDThe domain does not resolve.
ETIMEDOUTThe resolver did not answer in time.
ESERVFAILThe resolver returned SERVFAIL.
expected_value_mismatchResolution succeeded but the record did not contain expected_value.
dns_errorOther resolver error.

Threshold examples

GoalHealthyUnhealthy
Authoritative answer fastunder 50over 500
Resolution succeeds at allunder 5000over 10000

When the test is purely "does the domain still resolve", unhealthy_value set to a timeout-equivalent threshold combined with no_data on ENOTFOUND covers the case.

Was this page helpful?