mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
build error
This commit is contained in:
parent
9a992d82b8
commit
257a514a7c
@ -87,11 +87,7 @@ func Run(s *option.GWServer) error {
|
||||
|
||||
reg := prometheus.NewRegistry()
|
||||
reg.MustRegister(prometheus.NewGoCollector())
|
||||
reg.MustRegister(prometheus.NewProcessCollector(prometheus.ProcessCollectorOpts{
|
||||
PidFn: func() (int, error) {
|
||||
return os.Getpid(), nil
|
||||
},
|
||||
}))
|
||||
reg.MustRegister(prometheus.NewProcessCollector(os.Getpid(), ""))
|
||||
mc := metric.NewDummyCollector()
|
||||
if s.Config.EnableMetrics {
|
||||
mc, err = metric.NewCollector(s.NodeName, reg)
|
||||
|
Loading…
Reference in New Issue
Block a user