mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
a3781e2ffc
* Add prysm version to prometheus * gofmt * apply suggestion Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
16 lines
345 B
Go
16 lines
345 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},
|
|
})
|
|
|
|
func init() {
|
|
prysmInfo.Set(float64(1))
|
|
}
|