diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-09-24 09:50:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-24 09:50:48 -0700 |
| commit | 2e9099369e603308c703e4a78e48882ca3c5a5fc (patch) | |
| tree | 67152aa22273e000ed0a35b2c91a9c01587aca08 /weed/server/volume_server.go | |
| parent | 2e7c361a0d5fe1217bc00512d7ac7bc5975dfb53 (diff) | |
| parent | 98e9de6e111a1e4512a9d78d7d44d949af14d6dc (diff) | |
| download | seaweedfs-2e9099369e603308c703e4a78e48882ca3c5a5fc.tar.xz seaweedfs-2e9099369e603308c703e4a78e48882ca3c5a5fc.zip | |
Merge pull request #1489 from kmlebedev/promhttp
Promhttp
Diffstat (limited to 'weed/server/volume_server.go')
| -rw-r--r-- | weed/server/volume_server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 5e9ec1369..2a9097f01 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -46,6 +46,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, readRedirect bool, compactionMBPerSecond int, fileSizeLimitMB int, + metricsHttpPort int, ) *VolumeServer { v := util.GetViper() @@ -97,6 +98,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, } go vs.heartbeat() + go stats.StartMetricsServer(stats.VolumeServerGather, metricsHttpPort) go stats.LoopPushingMetric("volumeServer", fmt.Sprintf("%s:%d", ip, port), stats.VolumeServerGather, vs.metricsAddress, vs.metricsIntervalSec) return vs |
