aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-09-24 09:50:48 -0700
committerGitHub <noreply@github.com>2020-09-24 09:50:48 -0700
commit2e9099369e603308c703e4a78e48882ca3c5a5fc (patch)
tree67152aa22273e000ed0a35b2c91a9c01587aca08 /weed/command/filer.go
parent2e7c361a0d5fe1217bc00512d7ac7bc5975dfb53 (diff)
parent98e9de6e111a1e4512a9d78d7d44d949af14d6dc (diff)
downloadseaweedfs-2e9099369e603308c703e4a78e48882ca3c5a5fc.tar.xz
seaweedfs-2e9099369e603308c703e4a78e48882ca3c5a5fc.zip
Merge pull request #1489 from kmlebedev/promhttp
Promhttp
Diffstat (limited to 'weed/command/filer.go')
-rw-r--r--weed/command/filer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go
index a6670b063..96df0d7dd 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -36,6 +36,7 @@ type FilerOptions struct {
disableHttp *bool
cipher *bool
peers *string
+ metricsHttpPort *int
// default leveldb directory, used in "weed server" mode
defaultLevelDbDirectory *string
@@ -57,6 +58,7 @@ func init() {
f.disableHttp = cmdFiler.Flag.Bool("disableHttp", false, "disable http request, only gRpc operations are allowed")
f.cipher = cmdFiler.Flag.Bool("encryptVolumeData", false, "encrypt data on volume servers")
f.peers = cmdFiler.Flag.String("peers", "", "all filers sharing the same filer store in comma separated ip:port list")
+ f.metricsHttpPort = cmdFiler.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")
}
var cmdFiler = &Command{
@@ -122,6 +124,7 @@ func (fo *FilerOptions) startFiler() {
Port: uint32(*fo.port),
Cipher: *fo.cipher,
Filers: peers,
+ MetricsHttpPort: *fo.metricsHttpPort,
})
if nfs_err != nil {
glog.Fatalf("Filer startup error: %v", nfs_err)