mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
19 lines
378 B
Go
19 lines
378 B
Go
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,
|
|
"buildDate": buildDateUnix},
|
|
})
|
|
|
|
func init() {
|
|
prysmInfo.Set(float64(1))
|
|
}
|