prysm-pulse/runtime/debug/maxprocs_metric.go
Raul Jordan 495e92ce9f
Create Runtime Package for Moving Several Packages in Shared/ (#9588)
* add maxprocs

* add prereqs

* add tos and version pkg

* add in all runtime packages

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 09:46:29 +00: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))
})
)