bind_config_time_seconds not exported. Removed from Bind or mapped to another ID?
ptselios-inmarsat opened this issue · comments
Peter Tselios commented
My environment:
CentOS 7.5 (Bind & Prometheus/Grafana)
Bind 9.9.4
Bind Exporter: 0.2.0_dev
Problem: I cannot find the under subject metric. I don't know if it's mapped in another variable, but I cannot find it in the metrics.
Roman Havrilyuk commented
same, bind 9.8, debian 7, exporter version 0.2.0-dev
chandraas commented
same here, wish dev could help us
Daniel Swarbrick commented
Works as expected with BIND 9.11 on debian buster:
# HELP bind_config_time_seconds Time of the last reconfiguration since unix epoch in seconds.
# TYPE bind_config_time_seconds gauge
bind_config_time_seconds 1.601287894e+09
Note that the metric will only be exposed if your have issued a config reload of BIND since starting it.
if !c.stats.Server.ConfigTime.IsZero() {
ch <- prometheus.MustNewConstMetric(
configTime, prometheus.GaugeValue, float64(c.stats.Server.ConfigTime.Unix()),
)
}
Ben Kochie commented
This seems solved.