aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-16 01:39:30 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-16 01:39:30 -0700
commite861a6a3ab2874261c02c3c42d4450243284b559 (patch)
treeba41f7ceb68b2b2c73ae7d7309796f8cd3e244a0 /weed/server/volume_server.go
parentbe54eeb36434e10c624428a2445b61b28a85ca2b (diff)
downloadseaweedfs-e861a6a3ab2874261c02c3c42d4450243284b559.tar.xz
seaweedfs-e861a6a3ab2874261c02c3c42d4450243284b559.zip
simplify metrics configuration logic
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 787cedc65..c600da21e 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -98,10 +98,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
go vs.heartbeat()
hostAddress := fmt.Sprintf("%s:%d", ip, port)
- go stats.LoopPushingMetric("volumeServer", hostAddress, stats.VolumeServerGather,
- func() (addr string, intervalSeconds int) {
- return vs.MetricsAddress, vs.MetricsIntervalSec
- })
+ go stats.LoopPushingMetric("volumeServer", hostAddress, stats.VolumeServerGather, vs.MetricsAddress, vs.MetricsIntervalSec)
return vs
}