Commit graph

12 commits

Author SHA1 Message Date
Brandon Richardson e3caa1dcf7
feat: add option to enable granular lease metrics (#24)
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.
2023-04-07 18:09:17 +02:00
Robert Fratto b4719ce9a0
Update github.com/prometheus/common dependency (#16)
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>
2021-10-06 16:31:00 +02:00
Sandip Bhattacharya 8f3a65778f
Metrics collection should not break on missing leases file (#14) 2021-08-08 15:07:29 +02:00
Tom Wilkie 58de9c8b6f
Add a build_info metric and a promu build spec. (#9)
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>
2020-10-11 23:42:22 +02:00
Felix Ehrenpfort d5b74a1f9b
metrics: adding support for servers.bind. statistic (#7)
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
2020-02-25 08:18:18 +01:00
Michael Stapelberg 161ea97d3d fix vet warnings, update invocation 2019-10-22 08:55:57 +02:00
WilliButz 55f7e71b1e
add log output and use the prometheus log library 2018-05-06 15:13:33 +02:00
WilliButz 025856a69c
add configurable metrics path and minimal landing page 2018-05-06 15:12:19 +02:00
Michael Stapelberg b68bff846a add integration test (running against an actual dnsmasq) 2018-05-05 17:02:25 +02:00
Michael Stapelberg d106190ef8 implement -dnsmasq address flag 2018-05-05 17:01:57 +02:00
Siavash Safi 5bcf12a070 Set RecursionDesired header to fix SERVFAIL (#1) 2018-05-05 17:01:39 +02:00
Michael Stapelberg 1c0a911641 Initial commit 2017-10-30 06:23:40 -07:00