diff options
| author | Konstantin Lebedev <lebedev_k@tochka.com> | 2020-09-24 17:45:39 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <lebedev_k@tochka.com> | 2020-09-24 17:45:39 +0500 |
| commit | 324e44d4b3dffc1197bf8f6c6ec49297ace44c2b (patch) | |
| tree | edf0b2b4d990e4085d58ab084270912fd9fb5e77 /weed/command/filer.go | |
| parent | 3e52329cee39f3a83f58d3896514547093ff0cf8 (diff) | |
| download | seaweedfs-324e44d4b3dffc1197bf8f6c6ec49297ace44c2b.tar.xz seaweedfs-324e44d4b3dffc1197bf8f6c6ec49297ace44c2b.zip | |
add start metrics server
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index a6670b063..dcc85d8bd 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -36,7 +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 +57,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 +123,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) |
