Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion nsd_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down