github.com/prysmaticlabs/prysm@v1.4.4/shared/version/metrics.go (about)

     1  package version
     2  
     3  import (
     4  	"github.com/prometheus/client_golang/prometheus"
     5  	"github.com/prometheus/client_golang/prometheus/promauto"
     6  )
     7  
     8  var prysmInfo = promauto.NewGauge(prometheus.GaugeOpts{
     9  	Name: "prysm_version",
    10  	ConstLabels: prometheus.Labels{
    11  		"version":   gitTag,
    12  		"commit":    gitCommit,
    13  		"buildDate": buildDateUnix},
    14  })
    15  
    16  func init() {
    17  	prysmInfo.Set(float64(1))
    18  }