Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gather PowerDNS Recursor stats with Telegraf #108

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

DasSkelett
Copy link
Member

This is an attempt to get PowerDNS Recursor Stats into InfluxDB and thus Grafana, using the Telegraf input plugin.
We don't really have any insight on the recursors' health and state yet, only indirectly from dnsdist in front of them.
This basically follows the guide from the plugin README.

The only difference is that we don't create a separate directory under /run for the listening sockets (socket_dir), but reuse /run/pdns-recursor which systemd already creates for the recursor. Creating new directories in /run is ugly, because it is a virtual file system and everything's lost after reboot.
This also means we have to set the mode for /run/pdns-recursor to 0775 so the pdns group has write access as well (not only the user). Thankfully all-mighty systemd gives us the option RuntimeDirectoryMode for this.

I have no idea whether this works like this. A few fixes might be required after a test rollout.
(I am opening the PR now because I have it ready, but won't deploy this until tomorrow. So please don't merge, unless you want to deploy yourself.)

@DasSkelett DasSkelett requested a review from a team as a code owner June 15, 2022 20:55
@DasSkelett DasSkelett merged commit ac17374 into freifunkMUC:main Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants