prysm-pulse/shared/debug/maxprocs_metric.go
Nishant Das 663490ee1f Update Phore Dependency to the latest version (#2792)
* add new changes

* fix typos
2019-06-12 11:06:39 -05:00

18 lines
340 B
Go

package debug
import (
"runtime"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
_ = promauto.NewGaugeFunc(prometheus.GaugeOpts{
Name: "go_maxprocs",
Help: "The result of runtime.GOMAXPROCS(0)",
}, func() float64 {
return float64(runtime.GOMAXPROCS(0))
})
)