[metrics] Add the ability to control bind ip (#4012)

This commit is contained in:
Jiffs Maverick
2022-11-24 10:22:59 -08:00
committed by GitHub
parent 15284e2bee
commit 4b0430e71d
7 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -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)