Go to file
2021-11-17 14:15:26 -05:00
.github/workflows Add Github Actions CI (#27) 2021-11-17 14:15:26 -05:00
.gitignore Refactored the unbound histogram metrics from gauge metrics into 2017-10-19 16:10:25 +02:00
build_static.sh Add go mod support 2019-06-18 09:11:41 +03:00
go.mod Add support for freebsd/arm64 2019-12-11 14:20:09 -05:00
go.sum Add support for freebsd/arm64 2019-12-11 14:20:09 -05:00
LICENSE Add a proper license. 2017-01-09 09:35:52 +01:00
README.md Unmaintained readme update. 2021-03-12 10:16:21 +01:00
unbound_exporter.go Make TLS configuration optional 2019-10-05 15:05:12 +02:00

Prometheus Unbound exporter

Please note: This repository is currently unmaintained. Due to insufficient time and not using the exporter anymore we decided to archive this project.


This repository provides code for a simple Prometheus metrics exporter for the Unbound DNS resolver. This exporter connects to Unbounds TLS control socket and sends the stats_noreset command, causing Unbound to return metrics as key-value pairs. The metrics exporter converts Unbound metric names to Prometheus metric names and labels by using a set of regular expressions.


Installation

To install this code and in your go environment. You can then add the binary to your PATH.

go get github.com/kumina/unbound_exporter
go install github.com/kumina/unbound_exporter

Usage

To show all CLI flags available

unbound_exporter -h

For extended statistics, you may want to add the following to your unbound.conf

# statistics
extended-statistics: yes