diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-24 10:21:23 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-24 10:21:23 -0700 |
| commit | 4856bce0ee929088c64e311b4ac554e872fba12e (patch) | |
| tree | d67aac32f6f554a0ea901a36a07a7bf34390146c /weed/server/filer_server.go | |
| parent | d2d3aec3e160f4ae44a4f3f21595a9be51fd9189 (diff) | |
| download | seaweedfs-4856bce0ee929088c64e311b4ac554e872fba12e.tar.xz seaweedfs-4856bce0ee929088c64e311b4ac554e872fba12e.zip | |
adjust for metrics port
Diffstat (limited to 'weed/server/filer_server.go')
| -rw-r--r-- | weed/server/filer_server.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go index de271a483..ec0a4fb3e 100644 --- a/weed/server/filer_server.go +++ b/weed/server/filer_server.go @@ -54,7 +54,6 @@ type FilerOption struct { recursiveDelete bool Cipher bool Filers []string - MetricsHttpPort int } type FilerServer struct { @@ -158,8 +157,7 @@ func (fs *FilerServer) maybeStartMetrics() { } } - go stats.StartMetricsServer(stats.FilerGather, fs.option.MetricsHttpPort) - go stats.LoopPushingMetric("filer", stats.SourceName(fs.option.Port), stats.FilerGather, fs.metricsAddress, fs.metricsIntervalSec) + go stats.LoopPushingMetric("filer", stats.SourceName(fs.option.Port), fs.metricsAddress, fs.metricsIntervalSec) } func readFilerConfiguration(grpcDialOption grpc.DialOption, masterAddress string) (metricsAddress string, metricsIntervalSec int, err error) { |
