diff --git a/config/config.yaml b/config/config.yaml index 0dd4d4e..b531335 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -76,6 +76,12 @@ metrics: zone.slave: help: 'number of slave zones served. These are zones with "request-xfr" entries.' type: counter + zone.primary: + help: 'number of primary zones served. These are zones with no "request-xfr" entries. Same as zone.master.' + type: counter + zone.secondary: + help: 'number of secondary zones served. These are zones with "request-xfr" entries. Same as zone.slave.' + type: counter # Metrics that have labels based on some regex value # The capture group index should match the index of the label name under labels label_metrics: diff --git a/nsd_exporter.go b/nsd_exporter.go index bf2162d..8f407e4 100644 --- a/nsd_exporter.go +++ b/nsd_exporter.go @@ -85,7 +85,7 @@ func (c *NSDCollector) Collect(ch chan<- prometheus.Metric) { // Refetch metric m, ok = c.metrics[metricName] if !ok { - log.Println("Metric " + metricName + "not configured. Skipping") + log.Println("Metric " + metricName + " not configured. Skipping") } continue }