Skip to main content

DNSdist collector

DNSdist is a highly DNS-, DoS- and abuse-aware loadbalancer.

This module monitors load-balancer performance and health metrics.

It collects metrics from the internal webserver.

Used endpoints:


For collecting metrics via HTTP, we need enabled webserver.


All metrics have "dnsdist." prefix.

queriesglobalall, recursive, emptyqueries/s
queries_droppedglobalrule_drop, dynamic_blocked, no_policy, non_queriesqueries/s
answersglobalself_answered, nxdomain, refused, trunc_failuresanswers/s
backend_errorsglobaltimeouts, servfail, non_compliantresponses/s
cacheglobalhits, missesanswers/s
servercpuglobalsystem_state, user_statems/s
query_latencyglobal1ms, 10ms, 50ms, 100ms, 1sec, slowqueries/s
query_latency_avgglobal100, 1k, 10k, 1000kmicroseconds


Edit the go.d/dnsdist.conf configuration file using edit-config from the Agent's config directory, which is typically at /etc/netdata.

cd /etc/netdata # Replace this path with your Netdata config directory
sudo ./edit-config go.d/dnsdist.conf

Needs url and password or apikey to access the webserver.

Here is a configuration example:

- name: local
url: ''
X-API-Key: 'your-api-key' # static pre-shared authentication key for access to the REST API (api-key).

- name: remote
url: ''
X-API-Key: 'your-api-key' # static pre-shared authentication key for access to the REST API (api-key).

For all available options, see the dnsdist collector's configuration file.


To troubleshoot issues with the dnsdist collector, run the go.d.plugin with the debug option enabled. The output should give you clues as to why the collector isn't working.

  • Navigate to the plugins.d directory, usually at /usr/libexec/netdata/plugins.d/. If that's not the case on your system, open netdata.conf and look for the plugins setting under [directories].

    cd /usr/libexec/netdata/plugins.d/
  • Switch to the netdata user.

    sudo -u netdata -s
  • Run the go.d.plugin to debug the collector:

    ./go.d.plugin -d -m dnsdist

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.