mirror of
https://github.com/nshttpd/mikrotik-exporter.git
synced 2024-11-16 10:25:12 +01:00
add in go runtime metrics
This commit is contained in:
parent
6f53244308
commit
856665bc12
6
main.go
6
main.go
@ -174,7 +174,13 @@ func createMetricsHandler() (http.Handler, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
promhttp.Handler()
|
||||
|
||||
registry := prometheus.NewRegistry()
|
||||
err = registry.Register(prometheus.NewGoCollector())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
err = registry.Register(nc)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user