prysm-pulse/shared/version/metrics.go

16 lines
345 B
Go
Raw Normal View History

package version
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var prysmInfo = promauto.NewGauge(prometheus.GaugeOpts{
Name: "prysm_version",
ConstLabels: prometheus.Labels{"version": gitTag, "commit": gitCommit},
})
func init() {
prysmInfo.Set(float64(1))
}