Files
EasyDNS/docs/monitoring.md
2026-11-22 14:21:54 +01:00

36 lines
1.9 KiB
Markdown

# Monitoring and logs
## Metrics (`metrics.listen`, default 127.0.0.1:9090, path `/metrics`)
| Metric | Labels |
|---|---|
| `dns_queries_total` | transport (udp, tcp, dot, doh) |
| `dns_queries_by_type_total` | qtype (A, AAAA, …, OTHER) |
| `dns_responses_total` | rcode (NOERROR, NXDOMAIN, SERVFAIL, …) |
| `dns_answers_by_source_total` | source (authoritative, cache, recursive, forward, blocked, local, refused) |
| `dns_query_duration_seconds` | histogram |
| `dns_upstream_latency_seconds`, `dns_upstream_errors_total` | |
| `dns_cache_hits_total`, `dns_cache_misses_total`, `dns_cache_evictions_total`, `dns_cache_entries` | |
| `dns_blocked_total`, `dns_rate_limited_total`, `dns_malformed_total` | |
| `dns_xfr_out_total`, `dns_xfr_out_refused_total`, `dns_notify_received_total`, `dns_notify_refused_total` | |
| `dns_updates_total`, `dns_updates_refused_total`, `dns_tsig_failures_total` | |
| `dns_dnssec_secure_total`, `dns_dnssec_insecure_total`, `dns_dnssec_bogus_total` | |
| `dns_zone_serial`, `dns_zone_expired`, `dns_zone_last_sync_timestamp_seconds` | zone (bounded by configured zones) |
| `dns_tcp_connections`, `dns_inflight_queries`, `process_resident_memory_bytes`, `process_start_time_seconds` | |
No label ever contains a queried name or a client address. A Grafana dashboard is in
`deploy/grafana/easydns.json`.
## Logs
`tracing` with `logging.level` (error, warn, info, debug, trace or a filter such as
`info,query=info`), text or JSON (`logging.format: json`) on stderr. Optional query log
(`logging.query_log: true`): client (anonymised by default), name, type, RCODE, source,
transport, latency and a note (upstream used, block reason). Audit entries use target
`audit`, policy decisions target `policy`.
## Health
`/healthz` (metrics and API listeners), `/readyz` (API: all primary zones loaded),
`/api/v1/health` (`degraded` when a secondary zone is expired).