mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-22 22:33:33 +08:00
volume servers get metrics address and interval from the master
This commit is contained in:
@@ -87,7 +87,10 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
|
||||
readonlyMux.HandleFunc("/", fs.readonlyFilerHandler)
|
||||
}
|
||||
|
||||
stats.StartPushingMetric("filer", stats.SourceName(option.Port), stats.FilerGather, option.MetricsAddress, option.MetricsIntervalSec)
|
||||
go stats.LoopPushingMetric("filer", stats.SourceName(option.Port), stats.FilerGather,
|
||||
func() (addr string, intervalSeconds int) {
|
||||
return option.MetricsAddress, option.MetricsIntervalSec
|
||||
})
|
||||
|
||||
return fs, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user