SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
master metricsHttpPort
Konstantin Lebedev77c98b657e84
diff --git a/weed/command/master.go b/weed/command/master.goindex fc3e41d8dc..0f598f2da9 100644--- a/weed/command/master.go+++ b/weed/command/master.go@@ -2,6 +2,7 @@ package commandimport ("github.com/chrislusf/raft/protobuf"+ stats_collect "github.com/chrislusf/seaweedfs/weed/stats""github.com/gorilla/mux""google.golang.org/grpc/reflection""net/http"@@ -42,6 +43,7 @@ type MasterOptions struct {metricsAddress *stringmetricsIntervalSec *intraftResumeState *bool+ metricsHttpPort *int}func init() {@@ -61,6 +63,7 @@ func init() {m.disableHttp = cmdMaster.Flag.Bool("disableHttp", false, "disable http requests, only gRPC operations are allowed.")m.metricsAddress = cmdMaster.Flag.String("metrics.address", "", "Prometheus gateway address <host>:<port>")m.metricsIntervalSec = cmdMaster.Flag.Int("metrics.intervalSeconds", 15, "Prometheus push interval in seconds")+ m.metricsHttpPort = cmdMaster.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")m.raftResumeState = cmdMaster.Flag.Bool("resumeState", false, "resume previous state on start master server")}@@ -104,6 +107,7 @@ func runMaster(cmd *Command, args []string) bool {glog.Fatalf("volumeSizeLimitMB should be smaller than 30000")}+ go stats_collect.StartMetricsServer(*m.metricsHttpPort)startMaster(m, masterWhiteList)return true