Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing metrics; add a missing whitespace in the log message #19

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
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
Loading