register error metric

This commit is contained in:
Nils Decker
2016-03-01 00:19:37 +01:00
parent cf9eea02f6
commit 20e79b8016

View File

@@ -261,6 +261,8 @@ func main() {
}
prometheus.MustRegister(&FritzboxCollector{root, *flag_gateway_address})
prometheus.MustRegister(collect_errors)
// Since we are dealing with custom Collector implementations, it might
// be a good idea to enable the collect checks in the registry.
prometheus.EnableCollectChecks(true)