diff --git a/cmd/stdiscosrv/stats.go b/cmd/stdiscosrv/stats.go index 609b420df..6367f47c2 100644 --- a/cmd/stdiscosrv/stats.go +++ b/cmd/stdiscosrv/stats.go @@ -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")) }