Introduce a new flag that can be used to expose each DHCP lease as a
specific metric. Given the high cardinality of these metrics, exposition
of lease information is disabled by default.
This feature takes cues from node_exporter collectors which are
disabled by default, like the `processes` or `systemd` collectors for
instance. Typically, high-cardinality metrics are against prometheus
best-practices but for smaller networks (like home networks) these
features can be quite powerful.
This commit updates the dependency on github.com/prometheus/common,
which has since removed the github.com/prometheus/common/log package.
Prometheus logging has internally changed to use github.com/go-kit/log,
with helpers to construct one in github.com/prometheus/common/promlog.
Signed-off-by: Robert Fratto <robertfratto@gmail.com>
This makes the exporter expose a dnsmasq_exporter_build_info metric, which not only allows you to see what version you're running, but also allows you to dynamically select the job label in a Gragana dashboard - making the dashboards more portable.
To make sure the the build_info metric is correctly populated, I've added a promu build spec, allowing the exporter to be build with promu, the tool we use to build Prometheus and various exporters.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
this commit adds support for the servers.bind. statistic
which is exposed by dnsmasq and provides information about the
number of successful and failed queries on each configured
upstream server