lazydns

Collector Plugin

The metrics_collector plugin counts DNS queries and accumulates latency information. When built with the metrics feature it also provides a Prometheus-backed collector (prom_metrics_collector) that registers metrics in a Prometheus Registry.

This page documents the in-process collector and the optional Prometheus integration.

What it provides

Behavior

Configuration

The basic collector does not require configuration beyond construction. For runtime quick-setup the exec prefix metrics_collector is recognized.

YAML example (exec quick setup):

plugins:
  - exec: metrics_collector:

Prometheus-backed collector (requires metrics feature and a way to expose /metrics):

plugins:
  - exec: prom_metrics_collector:name=my_dns_server

The prom_metrics_collector quick-setup accepts name=<metric_name> to scope/register metrics under a unique name.

Prometheus integration

Metadata compatibility

Troubleshooting

Best practices