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/filer_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/filer_server.go')
| -rw-r--r-- | weed/server/filer_server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go index 4d6d424dc..de271a483 100644 --- a/weed/server/filer_server.go +++ b/weed/server/filer_server.go @@ -54,6 +54,7 @@ type FilerOption struct { recursiveDelete bool Cipher bool Filers []string + MetricsHttpPort int } type FilerServer struct { @@ -157,6 +158,7 @@ func (fs *FilerServer) maybeStartMetrics() { } } + go stats.StartMetricsServer(stats.FilerGather, fs.option.MetricsHttpPort) go stats.LoopPushingMetric("filer", stats.SourceName(fs.option.Port), stats.FilerGather, fs.metricsAddress, fs.metricsIntervalSec) } |
