Commit graph

37 commits

Author SHA1 Message Date
Gabriel Simmer 15a997cf5b
Fix up Actions (#2)
All checks were successful
CI / tests (push) Successful in 27s
CI / build (push) Successful in 35s
Reviewed-on: #2
Co-authored-by: Gabriel Simmer <g@gmem.ca>
Co-committed-by: Gabriel Simmer <g@gmem.ca>
2024-04-24 10:27:18 +01:00
Gabriel Simmer 54d87b724f
Merge pull request 'Upgrade dependencies for Go 1.22' (#1) from dependency-updates into main
Reviewed-on: #1
2024-04-24 09:15:51 +01:00
Gabriel Simmer c5fd5a45b5
Tweak test expected values, share same ID for queries 2024-04-24 09:12:29 +01:00
Gabriel Simmer 9382391c30
Formatting 2024-04-24 08:48:45 +01:00
Gabriel Simmer 5107e16233
Better collection of DNS queries
SingleInflight is now a noop in the dns package, so we have to
implement it ourselves. I've found that dnsmasq just times out when
sending all the questions together.
2024-04-24 08:47:23 +01:00
Gabriel Simmer f747d71cc0
Upgrade dependencies for Go 1.22 2024-04-24 08:40:42 +01:00
Marc Tudurí 44b1448080
Move collector logic from main to separate package (#26)
Co-authored-by: Robert Fratto <robertfratto@gmail.com>
2023-06-20 12:00:26 +02:00
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
dependabot[bot] 08fab8ede7
Bump github.com/prometheus/client_golang from 1.11.0 to 1.11.1 (#22)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 08:27:27 +01:00
Emily 3e12c69d33
Fix accidental leftovers from dashboard schema upgrade (#21) 2023-01-31 12:46:47 +01:00
Emily Ahlstrand Rager 5e0344ddec Updated dashboard schema to latest 2023-01-11 16:53:59 +01:00
Emily Ahlstrand Rager 297a498632 Fixed linting issues reported by mixtool 2023-01-11 16:53:59 +01:00
Tom Wilkie 6d9ae78e7d
Datasource template variable should be labelled 'Data Source' (#19)
Signed-off-by: Tom Wilkie <tom@grafana.com>
2021-10-19 18:55:15 +02:00
Michael Stapelberg 9df65941a0 Switch from Travis to GitHub Actions 2021-10-16 08:44:51 +02:00
Paulo Edgar Castro ba2c117d6a
Bump docker file so it builds again. (#18) 2021-10-14 20:24:47 +02:00
dependabot[bot] 3fa623b162
Bump github.com/miekg/dns from 1.1.14 to 1.1.25 (#17)
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.14 to 1.1.25.
- [Release notes](https://github.com/miekg/dns/releases)
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release)
- [Commits](https://github.com/miekg/dns/compare/v1.1.14...v1.1.25)

---
updated-dependencies:
- dependency-name: github.com/miekg/dns
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-06 17:36:42 +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
Evan 7245dc2121
Add title to build info panel, remove duplicate panel (#11) 2020-11-05 22:27:05 +01:00
Tom Wilkie a1ae28120b
Add a bare-bones 'monitoring mixin' for dnsmasq. (#10) 2020-10-12 19:01:09 +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
Tom Wilkie 4a335b2532
Add init script for openwrt. (#8) 2020-10-11 19:18:38 +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
Michael Stapelberg 90c5f0ae62 travis: use go1.13 2019-10-22 08:47:49 +02:00
Michael Stapelberg fc7234289d add go.sum 2019-10-22 08:45:09 +02:00
Vilvaramadurai Samidurai 646ded9be8 adding non-root user in dockerfile (#6)
Signed-off-by: vsamidurai <vilvaram@gmail.com>
2019-09-19 08:06:56 +02:00
Marcelo Almeida bca1dc5c86 Added Dockerfile (#5) 2019-06-17 16:40:24 +02:00
Michael Stapelberg 14cdb8f33e
Merge pull request #2 from WilliButz/add-features
add basic landing page, configurable metrics path and more log output
2018-05-06 17:33:50 +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 e1f281b435 add travis badge 2018-05-05 17:04:09 +02:00
Michael Stapelberg 201fe1998f document minimum required version 2018-05-05 17:02:25 +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