preview
We're still working on this feature, but we'd love for you to try it out!
It only applies to the versions starting on 0.0.5 released in October 2021.
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
Our PowerDNS integration collects and sends dimensional metrics from PowerDNS. You can view this metric data in pre-built dashboards, create alert policies, and create custom queries and charts.
Read on to install the integration, and to see what data we collect.
Compatibility and requirements
Our integration is compatible with PowerDNS Recursor and Authoritative Server.
Before installing the integration, make sure that you meet the following requirements:
- Install the infrastructure agent, minimum version 1.19.2.
- Linux distribution compatible with the infrastructure agent.
To get data from PowerDNS infrastructure, our PowerDNS integration uses a third-party Prometheus exporter, which exposes Prometheus metrics on the port specified in the configuration. The integration collects these metrics, transforms them into entities, filters them, and then sends them to New Relic.
To enable the API, the webserver and the HTTP API need to be enabled.
Add these lines to the pdns.conf:
api=yesapi-key=changeme
And restart, the following examples should start working:
curl -v -H 'X-API-Key: changeme' http://127.0.0.1:8081/api/v1/servers/localhost | jq .curl -v -H 'X-API-Key: changeme' http://127.0.0.1:8081/api/v1
For more information, Enabling Webserver and Api
Install and activate
To install the PowerDNS integration, choose your setup:
¿Te ha ayudado este documento con la instalación?
Configure the integration
To configure the integration, edit the config in the integration's YAML configuration file powerdns-config.yml
.
Use the YAML configuration to place required login credentials and configure how your data is collected, depending on your setup and preference.
Since this integration is based on a prometheus exporter, settings applicable to other integrations, like interval
, timeout
or inventory_source
are not supported.
PowerDNS instance settings
The following configuration options are available:
Setting | Description | Default |
---|---|---|
powerdns_url | API URL of the powerdns service | N/A |
exporter_port | Port to expose scrape endpoint on, If this is not provided a random port will be used to launch the exporter | random-port |
scrape_timeout | Time until a scrape request times out | 5s |
api_key | API key used to connect to the PowerDNS server | N/A |
Example configurations
Find and use data
For more on how to find and use your data, see Understand integration data.
Metrics are attached to the Metric sample and event types of the entities POWERDNS_AUTHORITATIVE
and POWERDNS_RECURSOR
. You can query this data for troubleshooting purposes, or to create custom charts and dashboards.
Metric data
Two entities are created: POWERDNS_AUTHORITATIVE
and POWERDNS_RECURSOR
.
The following dimensional metrics are captured scraping the exporter and linked to the entity POWERDNS_AUTHORITATIVE
:
Name | Description | Dimensions |
---|---|---|
| Uptime in seconds of the daemon. |
|
| Number of entries in the packet cache. | |
| Total number of recursive queries by status. |
|
| Remote server IP addresses. |
|
| PDNS Server Security status based on | |
| Total number of exceptions by error. |
|
| Average number of microseconds a packet spends within PowerDNS. | |
| Total number of DNS update queries by status. |
|
| Number of packets waiting for database attention. | |
| Distribution of rcodes. |
|
| Number of entries in the signature cache. | |
| Queries for domains that we are not authoritative for. |
|
| Total number of answer bytes sent over by protocol. |
|
| UDP Queries Received. |
|
| Number of errors while parsing PowerDNS JSON stats. | |
| Deferred cache actions because of maintenance by type. |
|
| The last scrape of PowerDNS was successful. | |
| Query cache lookups by result. |
|
| Number of entries in the key cache. | |
| Total number of answers by protocol. |
|
| Packet cache lookups by result. |
|
| Number of entries in the metadata cache. | |
| Total number of queries by protocol. |
|
| Number of CPU milliseconds spent in user, and kernel space. |
|
| DNSSEC counters. |
|
| Size distribution of responses. |
|
| Current total PowerDNS scrapes. | |
| Remote hosts querying domains for which we are not authoritative. |
|
The following dimensional metrics are captured scraping the exporter and linked to the entity POWERDNS_RECURSOR
:
Name | Description | Dimensions |
---|---|---|
| Total number of incoming queries by network. |
|
| Total number of outgoing queries by network. |
|
| Number of entries in the cache. | |
| Total number of cache lookups by result. |
|
| Number of errors while parsing PowerDNS JSON stats. | |
| Total number of answers by response code. |
|
| Current total PowerDNS scrapes. | |
| Number of concurrent queries. | |
| Total number of answers grouped by response time slots. |
|
| Exponential moving average of question-to-answer latency. | |
| Total number of exceptions by error. |
|
| Histogram of PowerDNS recursor response times in seconds. (sum metric) | |
| Histogram of PowerDNS recursor response times in seconds. (bucket metric) |
|
| The last scrape of PowerDNS was successful. |
Check the source code
This integration is open source software. This means you can browse its source code and send improvements, or create your own fork and build it.
Moreover this integration leverages an opensource exporter created by the community.