powerdns_recursor

package
v0.0.0-...-6ade924 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

README

PowerDNS Recursor monitoring with Netdata

PowerDNS Recursor is a high-performance DNS recursor with built-in scripting capabilities.

This module monitors one or more PowerDNS Recursor instances, depending on your configuration.

It collects metrics from the internal webserver.

Used endpoints:

Requirements

For collecting metrics via HTTP, we need:

Metrics

All metrics have "powerdns_recursor." prefix.

Metric Scope Dimensions Units
questions_in global total, tcp, ipv6 questions/s
questions_out global udp, tcp, ipv6, throttled questions/s
answer_time global 0-1ms, 1-10ms, 10-100ms, 100-1000ms, slow queries/s
timeouts global total, ipv4, ipv6 timeouts/s
drops global over-capacity-drops, query-pipe-full-drops, too-old-drops, truncated-drops, empty-queries drops/s
cache_size global cache, packet-cache, negative-cache entries

Configuration

Edit the go.d/powerdns_recursor.conf configuration file using edit-config from the Netdata config directory, which is typically at /etc/netdata.

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

To add a new endpoint to collect metrics from, or change the URL that Netdata looks for, add or configure the name and url values. Endpoints can be both local or remote as long as they expose their metrics on the provided URL.

Here is an example with two endpoints:

jobs:
  - name: local
    url: http://127.0.0.1:8081

  - name: remote
    url: http://203.0.113.0:8081

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

Troubleshooting

To troubleshoot issues with the powerdns_recursor 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 powerdns_recursor
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	web.HTTP `yaml:",inline"`
}

type Recursor

type Recursor struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Recursor

func (*Recursor) Charts

func (r *Recursor) Charts() *module.Charts

func (*Recursor) Check

func (r *Recursor) Check() bool

func (*Recursor) Cleanup

func (r *Recursor) Cleanup()

func (*Recursor) Collect

func (r *Recursor) Collect() map[string]int64

func (*Recursor) Init

func (r *Recursor) Init() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL