aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-17 14:51:47 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-17 14:51:47 -0700
commitd8ed73926dc79aaea57e9eb305c718e82dace64c (patch)
treee0dab86e8ddf7a79b2330b9eeb6654378a255df1 /weed/command/volume.go
parent68d1bef23671f353f65d89b73907edf5ce6918fc (diff)
downloadseaweedfs-d8ed73926dc79aaea57e9eb305c718e82dace64c.tar.xz
seaweedfs-d8ed73926dc79aaea57e9eb305c718e82dace64c.zip
volume servers get metrics address and interval from the master
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 5726528d5..c775ac5cf 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -45,8 +45,6 @@ type VolumeServerOptions struct {
cpuProfile *string
memProfile *string
compactionMBPerSecond *int
- metricsAddress *string
- metricsIntervalSec *int
}
func init() {
@@ -68,8 +66,6 @@ func init() {
v.cpuProfile = cmdVolume.Flag.String("cpuprofile", "", "cpu profile output file")
v.memProfile = cmdVolume.Flag.String("memprofile", "", "memory profile output file")
v.compactionMBPerSecond = cmdVolume.Flag.Int("compactionMBps", 0, "limit background compaction or copying speed in mega bytes per second")
- v.metricsAddress = cmdVolume.Flag.String("metrics.address", "", "Prometheus gateway address")
- v.metricsIntervalSec = cmdVolume.Flag.Int("metrics.intervalSeconds", 15, "Prometheus push interval in seconds")
}
var cmdVolume = &Command{
@@ -165,8 +161,6 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
v.whiteList,
*v.fixJpgOrientation, *v.readRedirect,
*v.compactionMBPerSecond,
- *v.metricsAddress,
- *v.metricsIntervalSec,
)
listeningAddress := *v.bindIp + ":" + strconv.Itoa(*v.port)