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>
12 lines
278 B
Modula-2
12 lines
278 B
Modula-2
module github.com/google/dnsmasq_exporter
|
|
|
|
go 1.12
|
|
|
|
require (
|
|
github.com/miekg/dns v1.1.14
|
|
github.com/prometheus/client_golang v1.7.1
|
|
github.com/prometheus/common v0.13.0
|
|
github.com/prometheus/promu v0.6.1 // indirect
|
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
|
|
)
|