|
|
@@ -7,6 +7,8 @@
|
|
|
package main
|
|
|
|
|
|
import (
|
|
|
+ "os"
|
|
|
+
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
)
|
|
|
|
|
|
@@ -105,4 +107,6 @@ func init() {
|
|
|
replicationSendsTotal, replicationRecvsTotal,
|
|
|
databaseKeys, databaseStatisticsSeconds,
|
|
|
databaseOperations, databaseOperationSeconds)
|
|
|
+
|
|
|
+ prometheus.MustRegister(prometheus.NewProcessCollector(os.Getpid(), "syncthing_discovery"))
|
|
|
}
|