PowerDNS “Graphing as a Service”

Dec 11, 2014

Over the past few months,we’ve worked on our graphing tool, which has proved to be a wonderful aid in debugging. If you want to get the best help from us in diagnosing your problems, read on.

PowerDNS Authoritative Server and PowerDNS Recursor can both emit statistics using the ‘carbon’ format as used by Graphite. This means that feeding your stats into the very powerful Graphite software is as easy as setting:

carbon-server=  # or 2a02:2770:8::2635:0:1

And from that point on, your PowerDNS product will send statistics to that IP address every 30 seconds. The target address should either run Graphite, or our own developed Metronome. Metronome is less powerful than Graphite, but very easy to setup. Graphs can be configured in Javascript, and out of the box, Metronome comes with support for graphing all PowerDNS products, plus the output of a small statistics program we wrote that emits network and CPU statistics.

Screenshot from 2014-12-11 14:31:11

To make this easier for everyone, we also run a public instance of Metronome on https://metronome1.powerdns.com/, and you are welcome to configure your PowerDNS products to send statistics by putting the following in pdns.conf or recursor.conf:

carbon-server=   # the IPv6 address  2a02:2770:8::2635:0:1 works as well


Your data will then appear in the dropdown with the name ‘pick-something’. If you don’t pick your own name, PowerDNS will use your hostname, but you might consider that to be too revealing. It might also trample existing data. Carbon travels over port 2003, and if PowerDNS can’t connect to the server, nothing is interrupted.

For the PowerDNS Recursor, you can even enable carbon reporting at runtime using:

rec_control set-carbon-server pick-something

To disable, run ‘rec_control set-carbon-server’.

If you have any (performance) issues with PowerDNS you want help with, it is tremendously useful to turn on reporting to our Metronome instance – very often we can spot your problem from the graph quickly.

Screenshot from 2014-12-11 14:37:20

Now, our public Metronome service is of course public, but you can obscure your data by picking an innocuous carbon-ourname.

Private Metronome service is also available for holders of PowerDNS support agreements. Finally, Metronome is easy to install, so you can also benefit from it locally.


About the author

Bert Hubert

Bert Hubert

Principal, PowerDNS

Related Articles

PowerDNS Authoritative Server 4.6.3

Hello! Today we published release 4.6.3 of the Authoritative Server. It contains two bug fixes, and marks the arrival of...

Peter van Dijk 07/4/22

PowerDNS Authoritative Server 4.6.2

Hello! Today we published release 4.6.2 of the Authoritative Server. It contains a carefully selected set of new features,...

Peter van Dijk 04/3/22

PowerDNS and Log4J/Log4Shell

As you may have heard, a critical vulnerability in the Log4J library was published recently. We have received questions...

Peter van Dijk 12/5/21

PowerDNS Authoritative Server 4.1

Version 4.1 is a major upgrade for the Authoritative Server, delivering improvements and speedups developed and tested over...

Peter van Dijk 11/5/17