dns
Reference for the `dns` collector.
dns· collector · runnanook doc dnsfor the same content in your terminal.
Resolves a hostname and reports status and latency.
Options
| Option | Type | Default | Description |
|---|---|---|---|
host | string | required | hostname to resolve |
Metrics
| Metric | Kind | Unit | Description |
|---|---|---|---|
dns.status | bool | — | true if resolution succeeded. Labels: host. |
dns.latency | numeric | seconds | resolution time in seconds. Labels: host. |
Examples
Probe upstream DNS
[[]]
= "dns-google"
= "dns"
= 30
[]
= "google.com"
Resolution failures
[[]]
= 'dns-google::dns.status is "false"'
= 2
= "ops"
Slow resolution
[[]]
= "dns-google::dns.latency > 500ms"
= 3
= "ops"