Unbound Telegraf Input Plugin
Unbound is an open source Domain Name System (DNS) resolver. This means it translates host names understandable to humans, such as urls, into IP addresses understandable to computers. Unbound is validating, recursive, and caching. It’s focused on security and privacy and allows users to encrypt their communication.
Why use a Telegraf plugin for Unbound?
The Unbound Telegraf Input Plugin captures statistics from Unbound and allows users to monitor things like number of queries, number of cache hits, average recursion time, and more. Knowing these statistics can help you make more informed decisions about how you want to utilize Unbound on your computer.
How to monitor Unbound using the Telegraf plugin
To use this plugin, you might need to update your permissions so it can reference unbound-control. You may also need to alter group membership, set facls, or use sudo depending on your user/group permissions. If you use sudo you will need to specify so in your Telegraf configuration and update your sudoers file.</p>
The statistics provided by unbound-control and the specific ones you gather will depend on your Unbound configuration. Histogram-related statistics are not collected and you can set whether you want to include extended statistics in your Unbound configuration. Collecting these statistics to view in Telegraf can allow you to get a view of the inner workings of Unbound on your computer as it translates urls, VPNs, multiplayer games, and more into IP addresses.
Key Unbound metrics to use for monitoring
- time_now time_up
- num_query_tcp num_query_ipv6