diff options
Diffstat (limited to 'weed/server/volume_server.go')
| -rw-r--r-- | weed/server/volume_server.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 454383d0c..4f21234dd 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -1,9 +1,12 @@ package weed_server import ( - "google.golang.org/grpc" + "fmt" "net/http" + "github.com/chrislusf/seaweedfs/weed/stats" + "google.golang.org/grpc" + "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/security" "github.com/chrislusf/seaweedfs/weed/storage" @@ -84,7 +87,8 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, } go vs.heartbeat() - startPushingMetric("volumeServer", volumeServerGather, metricsAddress, metricsIntervalSec) + hostAddress := fmt.Sprintf("%s:%d", ip, port) + stats.StartPushingMetric("volumeServer", hostAddress, stats.VolumeServerGather, metricsAddress, metricsIntervalSec) return vs } |
