From 4b0430e71d097c0de1f848b09d7aa8b4a74cb4d7 Mon Sep 17 00:00:00 2001 From: Jiffs Maverick Date: Thu, 24 Nov 2022 20:22:59 +0200 Subject: [metrics] Add the ability to control bind ip (#4012) --- weed/command/filer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weed/command/filer.go') diff --git a/weed/command/filer.go b/weed/command/filer.go index 4aa537f46..9e305d192 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -162,7 +162,7 @@ func runFiler(cmd *Command, args []string) bool { util.LoadConfiguration("security", false) - go stats_collect.StartMetricsServer(*f.metricsHttpPort) + go stats_collect.StartMetricsServer(*f.bindIp, *f.metricsHttpPort) filerAddress := util.JoinHostPort(*f.ip, *f.port) startDelay := time.Duration(2) -- cgit v1.2.3