mirror of
https://github.com/sberk42/fritzbox_exporter.git
synced 2026-02-14 11:49:50 +00:00
register error metric
This commit is contained in:
2
main.go
2
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user