diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-16 01:39:30 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-16 01:39:30 -0700 |
| commit | e861a6a3ab2874261c02c3c42d4450243284b559 (patch) | |
| tree | ba41f7ceb68b2b2c73ae7d7309796f8cd3e244a0 /weed/server/volume_server.go | |
| parent | be54eeb36434e10c624428a2445b61b28a85ca2b (diff) | |
| download | seaweedfs-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.go | 5 |
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 } |
