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/command/s3.go | |
| parent | d2d3aec3e160f4ae44a4f3f21595a9be51fd9189 (diff) | |
| download | seaweedfs-4856bce0ee929088c64e311b4ac554e872fba12e.tar.xz seaweedfs-4856bce0ee929088c64e311b4ac554e872fba12e.zip | |
adjust for metrics port
Diffstat (limited to 'weed/command/s3.go')
| -rw-r--r-- | weed/command/s3.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/command/s3.go b/weed/command/s3.go index fb09731fa..e94decaf3 100644 --- a/weed/command/s3.go +++ b/weed/command/s3.go @@ -115,6 +115,8 @@ func runS3(cmd *Command, args []string) bool { util.LoadConfiguration("security", false) + go stats_collect.StartMetricsServer(*s3StandaloneOptions.metricsHttpPort) + return s3StandaloneOptions.startS3Server() } @@ -155,8 +157,7 @@ func (s3opt *S3Options) startS3Server() bool { } } - go stats_collect.StartMetricsServer(stats_collect.S3Gather, *s3opt.metricsHttpPort) - go stats_collect.LoopPushingMetric("s3", stats_collect.SourceName(uint32(*s3opt.port)), stats_collect.S3Gather, metricsAddress, metricsIntervalSec) + go stats_collect.LoopPushingMetric("s3", stats_collect.SourceName(uint32(*s3opt.port)), metricsAddress, metricsIntervalSec) router := mux.NewRouter().SkipClean(true) |
